diff --git a/.gitignore b/.gitignore index 816df99..94f2c60 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,9 @@ a.out autom4te.cache darkstat-* hex-ify +hex-ify.DSYM/ c-ify +c-ify.DSYM/ config.h config.h.in config.log diff --git a/now.c b/now.c index b1a43cb..0cd0776 100644 --- a/now.c +++ b/now.c @@ -30,9 +30,11 @@ # include # include +# ifndef CLOCK_REALTIME typedef int clockid_t; # define CLOCK_REALTIME 0 # define CLOCK_MONOTONIC 1 +# endif static uint64_t mono_first = 0;