SHA256
8
0
forked from pool/newt
Files
newt/newt-0.52.20-implicit-pointer-decl.patch
Jan Engelhardt 1aa56bcdbc - Add -D_GNU_SOURCE to compilation flags because it is a required
feature macro for function setlinebuf to be declared. [boo#1225864]

If the request is OK, can you please also forward it to Factory
soon-ish so that we can switch the default compiler?  Thanks!

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/newt?expand=0&rev=59
2024-07-12 12:19:39 +00:00

41 lines
1004 B
Diff

Index: newt-0.52.20/dialogboxes.c
===================================================================
--- newt-0.52.20.orig/dialogboxes.c
+++ newt-0.52.20/dialogboxes.c
@@ -1,4 +1,5 @@
/* simple dialog boxes, used by both whiptail and tcl dialog bindings */
+#define _XOPEN_SOURCE 700
#include "config.h"
#include <fcntl.h>
@@ -8,6 +9,11 @@
#include <unistd.h>
#include <wchar.h>
#include <slang.h>
+#include <strings.h>
+
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
#include "nls.h"
#include "dialogboxes.h"
Index: newt-0.52.20/newt.c
===================================================================
--- newt-0.52.20.orig/newt.c
+++ newt-0.52.20/newt.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 700
#include "config.h"
#include <slang.h>
Index: newt-0.52.20/textbox.c
===================================================================
--- newt-0.52.20.orig/textbox.c
+++ newt-0.52.20/textbox.c
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE 700
#include <ctype.h>
#include <slang.h>