diff options
author | Florian Weimer <[email protected]> | 2023-04-14 22:35:08 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-04-21 05:22:59 +0000 |
commit | 872b71b88462358ab8bfe0fb83d4ce00abccb747 (patch) | |
tree | 6c99e3b0b7c331191fef099531f4bdcd4dccd4a4 | |
parent | bfad1975223ff5da6e998f3ad20fdc52e0fe94ca (diff) | |
download | engrampa-872b71b88462358ab8bfe0fb83d4ce00abccb747.tar.bz2 engrampa-872b71b88462358ab8bfe0fb83d4ce00abccb747.tar.xz |
file-utils: Include <strings.h> for strcasecmp
The _XOPEN_SOURCE macro definition overrides _DEFAULT_SOURCE
and disables the declaration in <string.h>.
This avoids an implicit function declaration and build failures
with future compilers.
-rw-r--r-- | src/file-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file-utils.c b/src/file-utils.c index 6c622e6..a2b782a 100644 --- a/src/file-utils.c +++ b/src/file-utils.c @@ -27,6 +27,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <strings.h> #include <ctype.h> #include <time.h> #include <unistd.h> |