From b43711e9ef2aa51978eb3c6a7f403f43662ae785 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 30 Jul 2010 17:16:39 +0200 Subject: [PATCH] Avoid compile problem in eclipse --- src/sc_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sc_test.c b/src/sc_test.c index 289e50c..e06a6ba 100644 --- a/src/sc_test.c +++ b/src/sc_test.c @@ -15,11 +15,14 @@ #endif #include +#include #include #include #include #include +#ifdef WIN32 + /** \brief handle that is used to stop that service should be stopped */ HANDLE default_stop_event = NULL; @@ -51,14 +54,20 @@ static int default_sc_main(yaz_sc_t s, int argc, char **argv) return 0; } +#endif + /** \brief the system main function */ int main(int argc, char **argv) { +#ifdef WIN32 yaz_sc_t s = yaz_sc_create("yaz_sc_test", "YAZ Service Control Test"); yaz_sc_program(s, argc, argv, default_sc_main, default_sc_stop); yaz_sc_destroy(&s); +#else + printf("Only on Windows\n"); +#endif exit(0); } /* -- 1.7.10.4