--- sunwait.cpp.orig 2015-06-01 08:25:41.000000000 -0500 +++ sunwait.cpp 2017-10-08 14:56:36.000000000 -0500 @@ -34,7 +34,7 @@ #endif // Linux -#if defined __linux__ +#if defined __linux__ || defined __APPLE__ #include #endif @@ -395,7 +395,7 @@ /* Windows code: End */ /* Linux code: Start */ - #if defined __linux__ + #if defined __linux__ || defined __APPLE__ gmtime_r (pTimet, pTm); #endif /* Linux code: End */ @@ -415,7 +415,7 @@ /* Windows code: End */ /* Linux code: Start */ - #if defined __linux__ + #if defined __linux__ || defined __APPLE__ localtime_r (pTimet, pTm); #endif /* Linux code: End */ @@ -477,7 +477,7 @@ /* Windows code: End */ /* Linux code: Start */ - #if defined __linux__ + #if defined __linux__ || defined __APPLE__ char buffer [80]; signed long int tmpLong = 0; @@ -1121,7 +1121,7 @@ /* Windows code: End */ /* Linux code: Start */ - #if defined __linux__ + #if defined __linux__ || defined __APPLE__ sleep (waitSeconds); // Linux-only (seconds OK) #endif /* Linux code: End */