Renamed files for sort tests.
[idzebra-moved-to-github.git] / test / api / t15.c
index da68b0d..b0e93ad 100644 (file)
@@ -1,8 +1,5 @@
-/* $Id: t15.c,v 1.9 2006-11-23 21:34:22 adam Exp $
-   Copyright (C) 2004-2006
-   Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+   Copyright (C) 1995-2008 Index Data
 
 Zebra is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -32,8 +29,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 +110,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 +139,7 @@ static void tst(int argc, char **argv)
     }
 #endif
 #endif
+#endif
     YAZ_CHECK(tl_close_down(0, zs));
 }