From 48d981b03015ecb3306ac8ff4de1091ba4dee0cd Mon Sep 17 00:00:00 2001 From: olsner Date: Wed, 2 Jun 2004 14:31:27 +0000 Subject: [PATCH] - Added a OS_UNIX define for unix variants (Linux and Mac OS X) - OS_UNIX => HAVE_GETTIMOFDAY - OS_LINUX => HAVE_X This was SVN commit r346. --- source/lib/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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