[PATCH] mmime: include strings.h for strncasecmp

8 views
Skip to first unread message

Michael Forney

unread,
Dec 7, 2022, 4:35:06 PM12/7/22
to mbl...@googlegroups.com
This POSIX function is defined in strings.h, so include it explicitly
rather than relying on implicit inclusion through default feature-test
macros.
---
mmime.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mmime.c b/mmime.c
index ab5bcf4..6334569 100644
--- a/mmime.c
+++ b/mmime.c
@@ -12,6 +12,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <time.h>
#include <unistd.h>

--
2.37.3

Reply all
Reply to author
Forward
0 new messages