]> git.sesse.net Git - vlc/commitdiff
fixups.h: added an explicit hack so binaries created on OS X Lion can be executed...
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 9 Jan 2012 23:50:13 +0000 (00:50 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 9 Jan 2012 23:50:18 +0000 (00:50 +0100)
include/vlc_fixups.h

index 02f85e34dee40df0a6802ccdff5b82f4fa2b2a8d..5f8f397bfc1bbd6288fe2e05fdead937f03594bc 100644 (file)
@@ -88,7 +88,11 @@ int putc_unlocked (int, FILE *);
 int putchar_unlocked (int);
 #endif
 
-#ifndef HAVE_GETDELIM
+/* we always need our implementation on Darwin, since native support for getline
+ * was added lately to Darwin 11 (OS X Lion) only.
+ * However, we want binaries created on this OS to be executable on previous
+ * releases. */
+#if !defined HAVE_GETDELIM || defined(__APPLE__)
 ssize_t getdelim (char **, size_t *, int, FILE *);
 ssize_t getline (char **, size_t *, FILE *);
 #endif