From 8ea06128c70b07c265a217222f2a245aad4bfce4 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 11 Nov 2011 11:06:02 -0800 Subject: Include strings.h for strcasecmp and string.h for strdup Our minimum requirement for X11 is currently Unix98. Unix98 provides strcasecmp in . This commit fixes implicit declarations of this function on systems that closely adhere to the standard. Signed-off-by: Jeremy Huddleston --- utils.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils.h b/utils.h index 61a5987..3bc61cb 100644 --- a/utils.h +++ b/utils.h @@ -196,6 +196,7 @@ uInformation(const char * /* s */ , ... (s1)!=(s2):strcmp(s1,s2)) #define uStrCaseEqual(s1,s2) (uStrCaseCmp(s1,s2)==0) #ifdef HAVE_STRCASECMP +#include #define uStrCaseCmp(s1,s2) (strcasecmp(s1,s2)) #define uStrCasePrefix(p,s) (strncasecmp(p,s,strlen(p))==0) #else @@ -207,6 +208,7 @@ uInformation(const char * /* s */ , ... ); #endif #ifdef HAVE_STRDUP +#include #define uStringDup(s1) ((s1) ? strdup(s1) : NULL) #else extern char *uStringDup(const char * /* s1 */ -- cgit v1.2.3