Closed jorge-leon closed 1 year ago
jim-signal.c uses the two BSD 4.4 specific functions strncasecmp and strcasecmp which are officially included in strings.h, but not necessarily in string.h.
jim-signal.c
strncasecmp
strcasecmp
strings.h
string.h
Some arbitrarily googled comment explains the background and also contains the suggestion to replace the functions with "standard" ones.: https://stackoverflow.com/questions/4291149/difference-between-string-h-and-strings-h
The issue showed up when compiling jimtcl against diet libc: https://www.fefe.de/dietlibc/
Adding the "missing" 's' to #include <string.h> in the file jim-signal.c fixes the issue on that side.
#include <string.h>
jim-signal.c
uses the two BSD 4.4 specific functionsstrncasecmp
andstrcasecmp
which are officially included instrings.h
, but not necessarily instring.h
.Some arbitrarily googled comment explains the background and also contains the suggestion to replace the functions with "standard" ones.: https://stackoverflow.com/questions/4291149/difference-between-string-h-and-strings-h
The issue showed up when compiling jimtcl against diet libc: https://www.fefe.de/dietlibc/
Adding the "missing" 's' to
#include <string.h>
in the filejim-signal.c
fixes the issue on that side.