diff options
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 823fe5d29..df3580521 100644 --- a/include/os.h +++ b/include/os.h @@ -492,6 +492,10 @@ extern _X_EXPORT size_t strlcpy(char *dst, const char *src, size_t siz); extern _X_EXPORT size_t strlcat(char *dst, const char *src, size_t siz); #endif +#ifndef HAVE_STRNDUP +extern _X_EXPORT char * strndup(const char *str, size_t n); +#endif + /* Logging. */ typedef enum _LogParameter { XLOG_FLUSH, |