]> git.sesse.net Git - vlc/commitdiff
fixups: hack to fix compilation on Darwin since the autotools incorrectly flag dirfd...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 3 Apr 2011 19:13:40 +0000 (21:13 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 3 Apr 2011 19:13:40 +0000 (21:13 +0200)
include/vlc_fixups.h

index 3d931af1a25125b5de6135af4b910f3dbb8acd89..cc6863630cdf517aefee89c2cbfcf6468767d13c 100644 (file)
@@ -173,6 +173,9 @@ pid_t getpid (void);
 
 /* dirent.h */
 #ifndef HAVE_DIRFD
+#ifdef __APPLE__
+#undef dirfd
+#endif
 int dirfd (DIR *);
 #endif