fixups.h: added an explicit hack so binaries created on OS X Lion can be executed correctly on Snow Leopard

This commit is contained in:
Felix Paul Kühne 2012-01-10 00:50:13 +01:00
parent a3f11b7f9c
commit 679830ea60
1 changed files with 5 additions and 1 deletions

View 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