Commit fd23532bdb4297446deb177c7cdaf61a635d3026

Con Kolivas 2011-09-06T09:41:58

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.

diff --git a/adl.c b/adl.c
index df575a3..3ed8e49 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 <stdio.h>
 #include <curses.h>
@@ -12,9 +12,10 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 #include <unistd.h>
-#else
+#else /* WIN32 */
 #include <windows.h>
 #include <tchar.h>
+#define sleep(x) Sleep(x)
 #endif
 #include "adl_functions.h"