[vlc-commits] fixups: hack to fix compilation on Darwin since the autotools incorrectly flag dirfd as undefined

Felix Paul Kühne git at videolan.org
Sun Apr 3 21:13:55 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Apr  3 21:13:40 2011 +0200| [f4cccde59417b3202d284bee647dc743d40acd2b] | committer: Felix Paul Kühne

fixups: hack to fix compilation on Darwin since the autotools incorrectly flag dirfd as undefined

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4cccde59417b3202d284bee647dc743d40acd2b
---

 include/vlc_fixups.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 3d931af..cc68636 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -173,6 +173,9 @@ pid_t getpid (void);
 
 /* dirent.h */
 #ifndef HAVE_DIRFD
+#ifdef __APPLE__
+#undef dirfd
+#endif
 int dirfd (DIR *);
 #endif
 



More information about the vlc-commits mailing list