aboutsummaryrefslogtreecommitdiff
path: root/libtls-standalone/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtls-standalone/include/string.h')
-rw-r--r--libtls-standalone/include/string.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libtls-standalone/include/string.h b/libtls-standalone/include/string.h
new file mode 100644
index 0000000..c42fcba
--- /dev/null
+++ b/libtls-standalone/include/string.h
@@ -0,0 +1,28 @@
1/*
2 * Public domain
3 * string.h compatibility shim
4 */
5
6#include_next <string.h>
7
8#ifndef LIBCRYPTOCOMPAT_STRING_H
9#define LIBCRYPTOCOMPAT_STRING_H
10
11#include <sys/types.h>
12
13#if defined(__sun) || defined(__hpux)
14/* Some functions historically defined in string.h were placed in strings.h by
15 * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris and HPUX.
16 */
17#include <strings.h>
18#endif
19
20#ifndef HAVE_EXPLICIT_BZERO
21void explicit_bzero(void *, size_t);
22#endif
23
24#ifndef HAVE_STRSEP
25char *strsep(char **stringp, const char *delim);
26#endif
27
28#endif