INN commit: trunk/include (clibrary.h)
INN Commit
rra at isc.org
Mon Jul 25 20:47:42 UTC 2011
Date: Monday, July 25, 2011 @ 13:47:42
Author: iulius
Revision: 9290
include <strings.h> if available
Do not include only <string.h> when <strings.h> is available. It is
required by the XSI extensions to POSIX and may be the only place that
strncasecmp, for instance, is prototyped on some platforms like FreeBSD.
Modified:
trunk/include/clibrary.h
------------+
clibrary.h | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
Modified: clibrary.h
===================================================================
--- clibrary.h 2011-07-24 14:37:06 UTC (rev 9289)
+++ clibrary.h 2011-07-25 20:47:42 UTC (rev 9290)
@@ -39,11 +39,10 @@
#include <stddef.h>
#if HAVE_STRING_H
# include <string.h>
-#else
-# if HAVE_STRINGS_H
-# include <strings.h>
-# endif
#endif
+#if HAVE_STRINGS_H
+# include <strings.h>
+#endif
#if HAVE_INTTYPES_H
# include <inttypes.h>
More information about the inn-committers
mailing list