changeset 16948:14d27052b3d8

argp, regex: Ensure strcasecmp gets declared. * lib/argp-help.c: Include <strings.h>. * lib/regex_internal.h: Likewise. Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
author Bruno Haible <bruno@clisp.org>
date Tue, 26 Jun 2012 19:46:15 +0200
parents 4df68724f8a7
children 6c13c6060f77
files ChangeLog lib/argp-help.c lib/regex_internal.h
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-06-26  Bruno Haible  <bruno@clisp.org>
+
+	argp, regex: Ensure strcasecmp gets declared.
+	* lib/argp-help.c: Include <strings.h>.
+	* lib/regex_internal.h: Likewise.
+	Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
+
 2012-06-24  Bruno Haible  <bruno@clisp.org>
 
 	ptsname_r: Make it consistent with ptsname on AIX.
--- a/lib/argp-help.c
+++ b/lib/argp-help.c
@@ -29,6 +29,7 @@
 #include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 #include <assert.h>
 #include <stdarg.h>
 #include <ctype.h>
--- a/lib/regex_internal.h
+++ b/lib/regex_internal.h
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <strings.h>
 
 #include <langinfo.h>
 #ifndef _LIBC