SHA256
8
0
forked from pool/newt
Files
newt/newt-0.52.20-implicit-pointer-decl.patch
Lars Vogdt 6f8eb9e2b9 - use new license string compatible with latest spdx.org changes
- ran spec-cleaner
- adjust spec file to be able to build for SLE-12 and below:
  + re-add BuildRoot definition
  + re-add defattr definitions
  + define python2_sitearch if the macro is not defined
- added newt-0.52.20-implicit-pointer-decl.patch to get rid of 
  compiler warnings about implicit definitions of functions

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/newt?expand=0&rev=45
2019-03-20 15:26:17 +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>