[vlc-devel] commit: Include <sys/eventfd.h> as needed ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jan 18 10:55:46 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 11:34:24 2009 +0200| [fb8414adf33c92b28ca266c5fbf29906c64f2c83] | committer: Rémi Denis-Courmont
Include <sys/eventfd.h> as needed
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb8414adf33c92b28ca266c5fbf29906c64f2c83
---
configure.ac | 2 +-
src/misc/objects.c | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 307f854..aaa767b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -795,7 +795,7 @@ AC_EGREP_HEADER(strncasecmp,strings.h,[
dnl Check for headers
AC_CHECK_HEADERS(signal.h time.h errno.h stdint.h stdbool.h getopt.h strings.h inttypes.h sys/int_types.h wchar.h locale.h)
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h xlocale.h)
-AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h])
+AC_CHECK_HEADERS([arpa/inet.h netinet/in.h netinet/udplite.h sys/eventfd.h])
AC_CHECK_HEADERS([net/if.h], [], [],
[
#include <sys/socket.h>
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 29b9078..fe051fd 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -62,6 +62,9 @@
# include <fcntl.h>
# include <errno.h> /* ENOSYS */
#endif
+#ifdef HAVE_SYS_EVENTFD_H
+# include <sys/eventfd.h>
+#endif
#include <assert.h>
/*****************************************************************************
More information about the vlc-devel
mailing list