gentoo-ebuilds/net-news/yydecode/files/yydecode-0.2.10-fix-strcmp-not-found.patch
Brahmajit Das 909a432874
net-news/yydecode: Fix error: call to undeclared library function strcmp
Closes: https://bugs.gentoo.org/898078
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31475
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2023-06-29 15:56:00 +03:00

15 lines
483 B
Diff

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.