Skip to content

Commit c7c8f9b

Browse files
committed
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 <[email protected]>
1 parent fd2b04f commit c7c8f9b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

auto.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ if {[opt-bool coverage]} {
236236
}
237237
}
238238

239-
cc-check-includes time.h sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h
239+
cc-check-includes time.h sys/time.h sys/socket.h netinet/in.h arpa/inet.h netdb.h strings.h
240240
cc-check-includes util.h pty.h sys/un.h dlfcn.h unistd.h dirent.h crt_externs.h execinfo.h
241241

242242
# Check sizeof time_t so we can warn on non-Y2038 compliance

jim-signal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
#ifdef HAVE_UNISTD_H
1212
#include <unistd.h>
1313
#endif
14+
#ifdef HAVE_STRINGS_H
15+
#include <strings.h>
16+
#endif
17+
1418
#include <jim-subcmd.h>
1519
#include <jim-signal.h>
1620

0 commit comments

Comments
 (0)