]> git.pond.sub.org Git - empserver/commitdiff
`make depend' attempts to make dependencies for *.c. This is plain
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Feb 2005 19:45:59 +0000 (19:45 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Feb 2005 19:45:59 +0000 (19:45 +0000)
evil, and ought to be fixed.  In particular, it chokes on this file,
because it includes Windows specific headers.  Which is fine, as the
file is compiled only under Windows.

Quick band-aid: wrap the file contents in #ifdef _WIN32.

src/lib/gen/service.c

index 24723eab3a39ba5d054e592613516c66e9e6fceb..66353772a78e0dcd5db7e992f96d95b192739306 100644 (file)
@@ -31,6 +31,7 @@
  *     Ron Koenderink, 2004
  */
 
+#ifdef _WIN32
 #include <windows.h>
 
 #include "prototypes.h"
@@ -286,3 +287,5 @@ service_stopped(void)
     else
        return 0;
 }
+
+#endif /* _WIN32 */