projects
/
openwrt-github
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
procd: update to the latest version
[openwrt-github/.git]
/
tools
/
include
/
getline.h
diff --git
a/tools/include/getline.h
b/tools/include/getline.h
index 3ac21715b885426f66df83a85d60b04632db9d5f..7b320f77cefd2e798b90c8216813025d4e7ff883 100644
(file)
--- a/
tools/include/getline.h
+++ b/
tools/include/getline.h
@@
-32,7
+32,11
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L)
+#ifdef __FreeBSD__
+#include <osreldate.h>
+#endif
+
+#if !defined(__linux__) && !defined(__OpenBSD__) && !(defined(__APPLE__) && __DARWIN_C_LEVEL >= 200809L) && !(defined(__FreeBSD__) && __FreeBSD_version >= 800000)
/*
* Emulate glibc getline() via BSD fgetln().
* Note that outsize is not changed unless memory is allocated.
/*
* Emulate glibc getline() via BSD fgetln().
* Note that outsize is not changed unless memory is allocated.