Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12480) strcasecmp requires strings.h
Home

[Freeciv-Dev] (PR#12480) strcasecmp requires strings.h

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12480) strcasecmp requires strings.h
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 10 Mar 2005 22:00:17 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12480 >

According to the manpage strcasecmp is in strings.h.  This patch 
includes that file.

-jason

Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.94
diff -u -r1.94 configure.ac
--- configure.ac        2 Feb 2005 06:55:06 -0000       1.94
+++ configure.ac        11 Mar 2005 05:59:44 -0000
@@ -468,7 +468,7 @@
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS([fcntl.h sys/time.h sys/types.h unistd.h sys/utsname.h \
-                  sys/file.h libintl.h signal.h])
+                  sys/file.h libintl.h signal.h strings.h])
 AC_HEADER_STDBOOL
 dnl Avoid including the unix emulation layer if we build mingw executables
 dnl There would be type conflicts between winsock and bsd/unix includes
Index: utility/support.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/utility/support.c,v
retrieving revision 1.30
diff -u -r1.30 support.c
--- utility/support.c   25 Nov 2004 05:39:59 -0000      1.30
+++ utility/support.c   11 Mar 2005 05:59:45 -0000
@@ -78,6 +78,9 @@
 #ifdef HAVE_WINSOCK
 #include <winsock.h>
 #endif
+#ifdef HAVE_STRINGS_H
+#  include <strings.h>
+#endif
 
 #include "fcintl.h"
 #include "mem.h"

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#12480) strcasecmp requires strings.h, Jason Short <=