INN commit: branches/2.5/include (clibrary.h)

INN Commit rra at isc.org
Sat Aug 6 20:19:21 UTC 2011


    Date: Saturday, August 6, 2011 @ 13:19:21
  Author: iulius
Revision: 9312

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:
  branches/2.5/include/clibrary.h

------------+
 clibrary.h |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Modified: clibrary.h
===================================================================
--- clibrary.h	2011-08-06 20:18:42 UTC (rev 9311)
+++ clibrary.h	2011-08-06 20:19:21 UTC (rev 9312)
@@ -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