From 28353c1df15c3d0482a10ffe33fa34c053af2c2e Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 30 Apr 2015 04:44:35 -0500 Subject: stub in initial libtls standalone tree --- libtls-standalone/include/string.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 libtls-standalone/include/string.h (limited to 'libtls-standalone/include/string.h') 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 @@ +/* + * Public domain + * string.h compatibility shim + */ + +#include_next + +#ifndef LIBCRYPTOCOMPAT_STRING_H +#define LIBCRYPTOCOMPAT_STRING_H + +#include + +#if defined(__sun) || defined(__hpux) +/* Some functions historically defined in string.h were placed in strings.h by + * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris and HPUX. + */ +#include +#endif + +#ifndef HAVE_EXPLICIT_BZERO +void explicit_bzero(void *, size_t); +#endif + +#ifndef HAVE_STRSEP +char *strsep(char **stringp, const char *delim); +#endif + +#endif -- cgit v1.2.3-55-g6feb