Fixes for Windows compilation
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 May 2012 10:57:23 +0000 (12:57 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 9 May 2012 10:57:23 +0000 (12:57 +0200)
src/filter_zoom.cpp
src/metaproxy_prog.cpp

index 481ad35..a75c4d4 100644 (file)
@@ -1444,7 +1444,7 @@ void yf::Zoom::Frontend::prepare_elements(BackendPtr b,
 }
 
 Z_Records *yf::Zoom::Frontend::get_explain_records(
-    Package &package,
+    mp::Package &package,
     Odr_int start,
     Odr_int number_to_present,
     int *error,
@@ -1503,7 +1503,7 @@ Z_Records *yf::Zoom::Frontend::get_explain_records(
 }
 
 
-Z_Records *yf::Zoom::Frontend::get_records(Package &package,
+Z_Records *yf::Zoom::Frontend::get_records(mp::Package &package,
                                            Odr_int start,
                                            Odr_int number_to_present,
                                            int *error,
index 02f197f..0deb96e 100644 (file)
@@ -80,7 +80,9 @@ static void work_common(void *data)
     pack.router(*routerp).move();
     /* this only exits if graceful stop is received (sig_usr1_handler) */
     yaz_log(YLOG_LOG, "metaproxy stop");
+#if HAVE_UNISTD_H
     kill(-process_group, SIGTERM); /* kill all children processes as well */
+#endif
     _exit(0);
 }