summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/freewnn/files/freewnn-1.1.1-implicit-configure.patch')
-rw-r--r--app-i18n/freewnn/files/freewnn-1.1.1-implicit-configure.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/app-i18n/freewnn/files/freewnn-1.1.1-implicit-configure.patch b/app-i18n/freewnn/files/freewnn-1.1.1-implicit-configure.patch
new file mode 100644
index 000000000000..a46f2f405e5d
--- /dev/null
+++ b/app-i18n/freewnn/files/freewnn-1.1.1-implicit-configure.patch
@@ -0,0 +1,19 @@
+--- a/configure.in 2024-06-19 23:14:54.243999953 +0300
++++ b/configure.in 2024-06-19 23:15:21.253961581 +0300
+@@ -549,6 +549,7 @@
+ #ifdef HAVE_TERMCAP_H
+ # include <termcap.h>
+ #endif
++#include <stdlib.h>
+ main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }],
+ res="OK", res="FAIL", res="FAIL")
+ if test "$res" = "OK"; then
+@@ -571,6 +572,8 @@
+ #ifdef HAVE_TERMCAP_H
+ # include <termcap.h>
+ #endif
++#include <stdlib.h>
++#include <string.h>
+ main()
+ {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }],
+ [ AC_MSG_RESULT([no -- we are in termcap land])