aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2023-07-11 07:27:38 +1000
committerSteve Bennett <steveb@workware.net.au>2023-07-11 07:31:04 +1000
commitc7c8f9b13436861037dbf1d5d57937207f47a153 (patch)
treea9acc7168d3de9e18c821b647a8d7c0575addfb6
parentfd2b04f7b1d43176a36cc273fd89c3efd4e16777 (diff)
downloadjimtcl-c7c8f9b13436861037dbf1d5d57937207f47a153.zip
jimtcl-c7c8f9b13436861037dbf1d5d57937207f47a153.tar.gz
jimtcl-c7c8f9b13436861037dbf1d5d57937207f47a153.tar.bz2
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 <steveb@workware.net.au>
-rw-r--r--auto.def2
-rw-r--r--jim-signal.c4
2 files changed, 5 insertions, 1 deletions
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 <unistd.h>
#endif
+#ifdef HAVE_STRINGS_H
+ #include <strings.h>
+#endif
+
#include <jim-subcmd.h>
#include <jim-signal.h>