summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/strings.h')
-rw-r--r--newlib/libc/include/strings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h
index fdccfca30..e467467ac 100644
--- a/newlib/libc/include/strings.h
+++ b/newlib/libc/include/strings.h
@@ -7,6 +7,9 @@
#ifndef _STRINGS_H_
#define _STRINGS_H_
+/* These functions are already declared in <string.h> with __BSD_VISIBLE */
+#if !(defined(_STRING_H_) && __BSD_VISIBLE)
+
#include "_ansi.h"
#include <sys/reent.h>
#include <sys/cdefs.h>
@@ -32,4 +35,6 @@ int _EXFUN(strncasecmp,(const char *, const char *, size_t));
_END_STD_C
+#endif /* !(_STRING_H_ && __BSD_VISIBLE) */
+
#endif /* _STRINGS_H_ */