[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05
Clint Adams
schizo at debian.org
Sun Nov 15 03:16:44 UTC 2009
The following commit has been merged in the upstream branch:
commit 72582edfdf6198171f51b4e1faaf60eec6699f8f
Author: Clint Adams <schizo at debian.org>
Date: Fri Jun 18 22:19:43 2004 +0000
include sys/socket.h for FreeBSD
* configure.ac, communicate.c: include sys/socket.h if available
(necessary on FreeBSD).
git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-2
diff --git a/communicate.c b/communicate.c
index 5aedad7..17e8433 100644
--- a/communicate.c
+++ b/communicate.c
@@ -25,6 +25,9 @@
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
#ifndef FAKEROOT_FAKENET
int msg_snd=-1;
diff --git a/configure.ac b/configure.ac
index 3c6189c..b4d362f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@ fi
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h endian.h sys/sysmacros.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h features.h sys/feature_tests.h pthread.h stdint.h inttypes.h grp.h endian.h sys/sysmacros.h sys/socket.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
--
fakeroot
More information about the Fakeroot-commits
mailing list