projects
/
empserver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168db3b
)
info: Add #include <strings.h> for portability
author
Markus Armbruster
<armbru@pond.sub.org>
Sun, 27 Dec 2020 06:30:41 +0000
(07:30 +0100)
committer
Markus Armbruster
<armbru@pond.sub.org>
Sat, 23 Jan 2021 06:08:03 +0000
(07:08 +0100)
We get strncasecmp() from <string.h>. This is a BSDism; POSIX
provides it in <strings.h>. Missed in commit
8fdd0259f2d
, v4.2.19.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/info.c
patch
|
blob
|
history
diff --git
a/src/lib/commands/info.c
b/src/lib/commands/info.c
index 6549f24e919a2afec3cf419c4e3938b6754f5461..cd9d4a008bb8d1af4f5a125220722037bb886e95 100644
(file)
--- a/
src/lib/commands/info.c
+++ b/
src/lib/commands/info.c
@@
-41,6
+41,7
@@
#include <sys/stat.h>
#include <stdio.h>
#if !defined(_WIN32)
+#include <strings.h>
#include <dirent.h>
#endif
#include "commands.h"