Use HAVE_UNISTD_H when including unistd.h.
[idzebra-moved-to-github.git] / dfa / agrep.c
index 9409baa..71e7b37 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: agrep.c,v 1.14 2005-01-15 19:38:18 adam Exp $
+/* $Id: agrep.c,v 1.16 2005-06-14 20:28:53 adam Exp $
    Copyright (C) 1995-2005
    Index Data ApS
 
@@ -32,14 +32,13 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #include <fcntl.h>
 
 #ifdef WIN32
-
 #include <io.h>
-
-#else
+#endif
+#if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 
-#include <zebrautl.h>
+#include <idzebra/util.h>
 #include <dfa.h>
 #include "imalloc.h"