]> granicus.if.org Git - graphviz/commitdiff
Need <unistd.h> if using gethostname().
authorerg <devnull@localhost>
Wed, 4 May 2005 17:00:44 +0000 (17:00 +0000)
committererg <devnull@localhost>
Wed, 4 May 2005 17:00:44 +0000 (17:00 +0000)
lib/gvc/gvhostname.c

index 75eb2ac3d7c8750612439fdfea5fe224c74b0eef..ab65c8ebbef3e54e218dcf71d7a078c4287ce005 100644 (file)
@@ -27,6 +27,9 @@
 #ifdef HAVE_UNAME
 #include <sys/utsname.h>
 #endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 
 /*
  * There is no portable macro for the maximum length