]> git.sesse.net Git - vlc/commitdiff
objects: check for HAVE_SYS_EVENTFD_H it is more reliable then HAVE_EVENTFD
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 26 Jan 2009 08:06:59 +0000 (09:06 +0100)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 30 Jan 2009 07:40:03 +0000 (08:40 +0100)
src/misc/objects.c

index 8adf9d78a77481f627b62403743629c383f300fd..20011cbec3de0b6ac86719442e66e3e4c7777a29 100644 (file)
@@ -401,7 +401,7 @@ int vlc_object_waitpipe( vlc_object_t *obj )
         /* This can only ever happen if someone killed us without locking: */
         assert (internals->pipes[1] == -1);
 
-#ifdef HAVE_EVENTFD
+#ifdef HAVE_SYS_EVENTFD_H
         internals->pipes[0] = internals->pipes[1] = eventfd (0, 0);
         if (internals->pipes[0] == -1)
 #endif