From fd23532bdb4297446deb177c7cdaf61a635d3026 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 6 Sep 2011 09:41:58 +1000 Subject: [PATCH] Make adl attempt to compile only on win32 or linux since there is no support for it on onther platforms, and fix sleep() definition on win32. --- adl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/adl.c b/adl.c index df575a3c..3ed8e49b 100644 --- a/adl.c +++ b/adl.c @@ -1,6 +1,6 @@ #include "config.h" -#ifdef HAVE_ADL +#if defined(HAVE_ADL) && (defined(__linux) || defined (WIN32)) #include #include @@ -12,9 +12,10 @@ #include #include #include -#else +#else /* WIN32 */ #include #include +#define sleep(x) Sleep(x) #endif #include "adl_functions.h"