projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a44c8c
)
[backfire] tools: merge r27916 (OS X 10.7 getline fix)
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 1 Feb 2012 21:10:53 +0000
(21:10 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 1 Feb 2012 21:10:53 +0000
(21:10 +0000)
SVN-Revision: 29983
tools/include/getline.h
patch
|
blob
|
history
diff --git
a/tools/include/getline.h
b/tools/include/getline.h
index b9a3f7150fd792e9007a8303d35ab009f12df05e..02df6c2f7900734aa9798c3eeef0cc6e9607ae88 100644
(file)
--- a/
tools/include/getline.h
+++ b/
tools/include/getline.h
@@
-27,12
+27,12
@@
* SUCH DAMAGE.
*/
-#ifndef __linux__
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if !defined(__linux__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L)
/*
* Emulate glibc getline() via BSD fgetln().
* Note that outsize is not changed unless memory is allocated.