gentoo-ebuilds/app-text/unrtf/files/unrtf-0.21.10-use-_GNU_SOURCE.patch
Brahmajit Das cca2ef8c92
app-text/unrtf: Fix call to undeclared function strcasestr
and update EAPI 7 -> 8

[sam: Tweak comment and rename patch file to reflect the version that
was finally submitted rather than the initial version.]

Closes: https://bugs.gentoo.org/894716
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32868
Signed-off-by: Sam James <sam@gentoo.org>
2024-11-19 14:20:49 +00:00

11 lines
213 B
Diff

Bug: https://bugs.gentoo.org/894716
--- a/src/convert.c
+++ b/src/convert.c
@@ -104,6 +104,7 @@
#ifdef HAVE_STRING_H
/* For strcasestr() */
#define __USE_GNU
+#define _GNU_SOURCE
#include <string.h>
#endif