summaryrefslogtreecommitdiff
path: root/net-news/yydecode/files/yydecode-0.2.10-fix-strcmp-not-found.patch
blob: 9fad34a3573afeb767735a84c1bff0fe2a2e5971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Bug: https://bugs.gentoo.org/898078
Include string.h for strcmp functions
diff --git a/src/getopt.c b/src/getopt.c
index 10a4c32..adf91e7 100644
--- a/src/getopt.c
+++ b/src/getopt.c
@@ -67,6 +67,8 @@
 #include <stdlib.h>
 #endif	/* GNU C library.  */
 
+#include <string.h>
+
 /* This version of `getopt' appears to the caller like standard Unix `getopt'
    but it behaves differently for the user, since it allows the user
    to intersperse the options with the other arguments.