diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/os.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 7d6cb966c..e1d3a9eaa 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -190,6 +190,9 @@ /* Define to 1 if you have the <string.h> header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strndup' function. */ +#undef HAVE_STRNDUP + /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR 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, |