From c7c8f9b13436861037dbf1d5d57937207f47a153 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Tue, 11 Jul 2023 07:27:38 +1000 Subject: signal: fix build warnings Need strings.h for strcasecmp (Although I don't really think it's necessary to support lower case versions of signal names. This will probably change). Fixes #270 Signed-off-by: Steve Bennett --- auto.def | 2 +- jim-signal.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/auto.def b/auto.def index b972dfa..162f7d2 100644 --- a/auto.def +++ b/auto.def @@ -236,7 +236,7 @@ if {[opt-bool coverage]} { } } -cc-check-includes time.h sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h +cc-check-includes time.h sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h strings.h cc-check-includes util.h pty.h sys/un.h dlfcn.h unistd.h dirent.h crt_externs.h execinfo.h # Check sizeof time_t so we can warn on non-Y2038 compliance diff --git a/jim-signal.c b/jim-signal.c index e25a276..328a139 100644 --- a/jim-signal.c +++ b/jim-signal.c @@ -11,6 +11,10 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_STRINGS_H + #include +#endif + #include #include -- cgit v1.1