From 5244690a5e0285b6243ee1f28ae6c8287a32b73d Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 26 Oct 2008 11:37:11 +0100 Subject: Add prototypes for strlcpy/strlcat --- include/dix-config.h.in | 3 +++ include/os.h | 5 +++++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 6c3d91c59..954a4284c 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -72,6 +72,9 @@ /* Support SHM */ #undef HAS_SHM +/* Have the 'strlcpy' function */ +#undef HAS_STRLCPY + /* Define to 1 if you have the header file. */ #undef HAVE_ASM_MTRR_H diff --git a/include/os.h b/include/os.h index 7acc591f0..77e94486a 100644 --- a/include/os.h +++ b/include/os.h @@ -456,6 +456,11 @@ extern int xstrncasecmp(const char *s1, const char *s2, size_t n); extern char *xstrcasestr(const char *s, const char *find); #endif +#ifndef HAS_STRLCPY +extern size_t strlcpy(char *dst, const char *src, size_t siz); +extern size_t strlcat(char *dst, const char *src, size_t siz); +#endif + /* Logging. */ typedef enum _LogParameter { XLOG_FLUSH, -- cgit v1.2.3