Missing include?
- From: Ray Simard <rhs techlists sylvan-glade com>
- To: gnome-vfs-list gnome org
- Subject: Missing include?
- Date: Tue, 29 Jun 2004 15:39:37 -0700
I just encountered an error compiling the gnome-vfs package: gethostname() came
up undeclared. The following change corrected the error. I'm not certain that's
the best way to do it; but FYI.
diff -uNr gnome-vfs-2.7.3o/libgnomevfs/gnome-vfs-dns-sd.c gnome-vfs-2.7.3/libgnomevfs/gnome-vfs-dns-sd.c
--- gnome-vfs-2.7.3/libgnomevfs/gnome-vfs-dns-sd.c 2004-06-23 05:51:32.000000000 -0700
+++ gnome-vfs-2.7.3/libgnomevfs/gnome-vfs-dns-sd.c 2004-06-29 13:17:15.000000000 -0700
@@ -23,6 +23,9 @@
#include <config.h>
+#if HAVE_UNISTD_H
+# include <unistd.h>
+#endif /* #if HAVE_UNISTD_H */
#include <sys/time.h>
#include <sys/types.h>
#include <netinet/in.h>
==============
HTH
Ray Simard
rhs techlists sylvan-glade com
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]