Skip to content

Commit

Permalink
Fix build on OS X
Browse files Browse the repository at this point in the history
OS X lacks the POSIX-mandated clock_gettime function, and tarsnap is
not using libcperciva's "support broken operating systems" compatibility
mechanism yet.  Add -DPOSIXFAIL_CLOCK_REALTIME to the build.
  • Loading branch information
cperciva committed Aug 21, 2015
1 parent e5e86a5 commit 00bf976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ lib_libtarsnap_a_CFLAGS= \
-I$(top_srcdir)/libcperciva/util \
-I. \
-D CPUSUPPORT_CONFIG_FILE=\"cpusupport-config.h\" \
-DPOSIXFAIL_MSG_NOSIGNAL
-DPOSIXFAIL_MSG_NOSIGNAL \
-DPOSIXFAIL_CLOCK_REALTIME

LIBTARSNAP_A= lib/libtarsnap.a

Expand Down

0 comments on commit 00bf976

Please sign in to comment.