diff --git a/source/lib/config.h b/source/lib/config.h index 0a2646efc4..df0d53efb3 100755 --- a/source/lib/config.h +++ b/source/lib/config.h @@ -2,10 +2,12 @@ # define OS_WIN #elif defined(linux) # define OS_LINUX +# define OS_UNIX #elif defined(macintosh) # define OS_MACOS #elif defined(__APPLE__) && defined(__MACH__) # define OS_MACOSX +# define OS_UNIX #else # error "unknown OS - add define here" #endif @@ -23,5 +25,12 @@ #undef HAVE_GETTIMEOFDAY #undef HAVE_X +#ifdef OS_UNIX +# define HAVE_GETTIMEOFDAY +#endif + +#ifdef OS_LINUX +# define HAVE_X +#endif #undef CONFIG_DISABLE_EXCEPTIONS