summaryrefslogtreecommitdiff
path: root/user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-09 17:45:15 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-09-09 17:45:15 +0000
commit89d2896478f871cbad539c7a321f92bfd2f65269 (patch)
tree4fc8584245695703143870d5d01dbcb311ed1e00 /user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch
parentc5bab4fc44040528eb9779ca3360ec1606dbb345 (diff)
downloadpackages-89d2896478f871cbad539c7a321f92bfd2f65269.tar.gz
packages-89d2896478f871cbad539c7a321f92bfd2f65269.tar.bz2
packages-89d2896478f871cbad539c7a321f92bfd2f65269.tar.xz
packages-89d2896478f871cbad539c7a321f92bfd2f65269.zip
user/libbsd: bump to 0.9.1
Diffstat (limited to 'user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch')
-rw-r--r--user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch5
1 files changed, 4 insertions, 1 deletions
diff --git a/user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch b/user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch
index e97e30e84..0d4007d09 100644
--- a/user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch
+++ b/user/libbsd/0001-Replace-__BEGIN_DECLS-and-__END_DECLS.patch
@@ -205,7 +205,7 @@ diff --git a/include/bsd/string.h b/include/bsd/string.h
index ee2f953..fbf8c54 100644
--- a/include/bsd/string.h
+++ b/include/bsd/string.h
-@@ -36,13 +36,19 @@
+@@ -36,16 +36,22 @@
#include <sys/cdefs.h>
#include <sys/types.h>
@@ -219,7 +219,10 @@ index ee2f953..fbf8c54 100644
char *strnstr(const char *str, const char *find, size_t str_len);
void strmode(mode_t mode, char *str);
+ #if !defined(__GLIBC__) || \
+ (defined(__GLIBC__) && (!__GLIBC_PREREQ(2, 25) || !defined(_GNU_SOURCE)))
void explicit_bzero(void *buf, size_t len);
+ #endif
-__END_DECLS
+#ifdef __cplusplus
+}