]> granicus.if.org Git - graphviz/commitdiff
Wrap unistd.h in #ifdef HAVE_UNISTD_H
authorerg <devnull@localhost>
Wed, 2 May 2007 20:28:06 +0000 (20:28 +0000)
committererg <devnull@localhost>
Wed, 2 May 2007 20:28:06 +0000 (20:28 +0000)
plugin/gtk/interface.c
plugin/gtk/support.c

index d361ac065647d2159056853f6513edbcf766865e..895e0a0fe376981282aa723a52d5447c9c6d0a49 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_UNISTD_H 
 #include <unistd.h>
+#endif
 #include <string.h>
 #include <stdio.h>
 
index 00aff2982277642e2887745d30ab8f9399763350..387e0a0bc4c9b2080a08da2d54c75cfe7437ab37 100644 (file)
@@ -8,7 +8,9 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#ifdef HAVE_UNISTD_H 
 #include <unistd.h>
+#endif
 #include <string.h>
 #include <stdio.h>