blob: 8b202daec7f84e7536827a137d7b9dd9d8664c4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From ed600d8ac056b1e522231ffc4a819fc8c05f8eb6 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 14 Dec 2020 02:10:41 -0800
Subject: [PATCH] Include <strings.h> for strcasecmp
Though some implementations include this header indirectly through
string.h by default, the POSIX header that declares strcasecmp is
strings.h[0].
[0] https://pubs.opengroup.org/onlinepubs/9699919799/functions/strcasecmp.html
---
lib.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib.c b/lib.c
index 5404818..c200114 100644
--- a/lib.c
+++ b/lib.c
@@ -25,6 +25,7 @@ THIS SOFTWARE.
#define DEBUG
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
--
2.29.2
|