diff options
author | Brent Cook <busterb@gmail.com> | 2015-04-30 04:44:35 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2015-05-23 19:26:51 -0500 |
commit | 28353c1df15c3d0482a10ffe33fa34c053af2c2e (patch) | |
tree | 580bf87a6db90c492dd55594f9612d2442331376 /libtls-standalone/include/string.h | |
parent | 7de7605b95f2cd2d061720376544d511f71dc063 (diff) | |
download | portable-28353c1df15c3d0482a10ffe33fa34c053af2c2e.tar.gz portable-28353c1df15c3d0482a10ffe33fa34c053af2c2e.tar.bz2 portable-28353c1df15c3d0482a10ffe33fa34c053af2c2e.zip |
stub in initial libtls standalone tree
Diffstat (limited to 'libtls-standalone/include/string.h')
-rw-r--r-- | libtls-standalone/include/string.h | 28 |
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 | ||
21 | void explicit_bzero(void *, size_t); | ||
22 | #endif | ||
23 | |||
24 | #ifndef HAVE_STRSEP | ||
25 | char *strsep(char **stringp, const char *delim); | ||
26 | #endif | ||
27 | |||
28 | #endif | ||