From e68fe9d98349676c88ebfcb27248ff82271deaf5 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 18 Jan 2022 01:50:00 +0300 Subject: [PATCH] include strings.h, if available, for strcasecmp it might not be prototyped in strings.h. --- Makefile.os2 | 2 +- Makefile.w32 | 2 +- src/options.c | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.os2 b/Makefile.os2 index e3bf7d8..688d28d 100644 --- a/Makefile.os2 +++ b/Makefile.os2 @@ -3,7 +3,7 @@ # wmake -f Makefile.os2 CC=wcc386 -CPPFLAGS=-DHAVE_SIGNAL_H +CPPFLAGS=-DHAVE_SIGNAL_H -DHAVE_STRINGS_H CPPFLAGS+= -DSOUND_OS2DART !ifndef __UNIX__ diff --git a/Makefile.w32 b/Makefile.w32 index adbf122..de939fa 100644 --- a/Makefile.w32 +++ b/Makefile.w32 @@ -3,7 +3,7 @@ # wmake -f Makefile.w32 CC=wcc386 -CPPFLAGS=-DHAVE_SIGNAL_H +CPPFLAGS=-DHAVE_SIGNAL_H -DHAVE_STRINGS_H CPPFLAGS+= -DSOUND_WIN32 !ifndef __UNIX__ diff --git a/src/options.c b/src/options.c index 1730c0f..3a79e27 100644 --- a/src/options.c +++ b/src/options.c @@ -9,6 +9,9 @@ #include #include #include +#ifdef HAVE_STRINGS_H +#include +#endif #include #include #if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG)