SHA256
6
0
forked from pool/wv
wv/wv-noansi.patch
Michal Vyskocil 9b7af4f0ae Accepting request 196593 from home:elvigia:branches:devel:libraries:c_c++
- Also, cleanup buildrequires, libtiff is not used  and zlib-devel
  is required.

- wv-noansi.patch: Do not build with -ansi , but in gnu99 mode with 
  system extensions enabled

OBS-URL: https://build.opensuse.org/request/show/196593
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/wv?expand=0&rev=14
2013-08-28 08:36:09 +00:00

29 lines
616 B
Diff

--- wv-1.2.2.orig/configure.ac
+++ wv-1.2.2/configure.ac
@@ -53,9 +53,12 @@ AH_TOP([
dnl Checks for programs.
-AC_PROG_CC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+
if test "x$GCC" = "xyes"; then
- ANSI_CFLAGS="-ansi"
+ ANSI_CFLAGS=""
else
ANSI_CFLAGS=""
fi
--- wv-1.2.2.orig/wvWare.c
+++ wv-1.2.2/wvWare.c
@@ -30,8 +30,6 @@
#include "wv.h"
#include "getopt.h"
-/* strdup isn't declared in <string.h> for `gcc -ansi'; declare it here */
-extern char *strdup (const char *);
extern char *str_copy(char *d, size_t n, char *s);
extern char *str_append(char *d, size_t n, char *s);