diff options
Diffstat (limited to 'compat/include/string.h')
-rw-r--r-- | compat/include/string.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/compat/include/string.h b/compat/include/string.h new file mode 100644 index 000000000000..75190903aba8 --- /dev/null +++ b/compat/include/string.h @@ -0,0 +1,16 @@ +/* + * string.h compatibility shim + * Public domain + */ + +#include_next <string.h> + +#ifndef DIFFCOMPAT_STRING_H +#define DIFFCOMPAT_STRING_H + +#include <sys/types.h> + +size_t strlcpy(char *dst, const char *src, size_t dstsize); +size_t strlcat(char *dst, const char *src, size_t dstsize); + +#endif |