2007.
[idzebra-moved-to-github.git] / test / api / t15.c
index da68b0d..b8a8171 100644 (file)
@@ -1,5 +1,5 @@
-/* $Id: t15.c,v 1.9 2006-11-23 21:34:22 adam Exp $
-   Copyright (C) 2004-2006
+/* $Id: t15.c,v 1.12 2007-01-15 15:10:20 adam Exp $
+   Copyright (C) 2004-2007
    Index Data ApS
 
 This file is part of the Zebra server.
@@ -32,8 +32,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #if HAVE_SYS_WAIT_H
 #include <sys/wait.h>
 #endif
-
+#if HAVE_SYS_UTSNAME_H
 #include <sys/utsname.h>
+#endif
+
+#include <string.h>
 
 #include "testlib.h"
 
@@ -110,6 +113,7 @@ static void tst(int argc, char **argv)
 
 #if HAVE_SYS_WAIT_H
 #if HAVE_UNISTD_H
+#if HAVE_SYS_UTSNAME_H
 
     if (1)
     {
@@ -138,6 +142,7 @@ static void tst(int argc, char **argv)
     }
 #endif
 #endif
+#endif
     YAZ_CHECK(tl_close_down(0, zs));
 }