summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libnsbmp/files/libnsbmp-0.1.1-glibc2.20.patch')
-rw-r--r--media-libs/libnsbmp/files/libnsbmp-0.1.1-glibc2.20.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/libnsbmp/files/libnsbmp-0.1.1-glibc2.20.patch b/media-libs/libnsbmp/files/libnsbmp-0.1.1-glibc2.20.patch
new file mode 100644
index 000000000000..9f912195fd71
--- /dev/null
+++ b/media-libs/libnsbmp/files/libnsbmp-0.1.1-glibc2.20.patch
@@ -0,0 +1,15 @@
+--- libnsbmp-0.1.1/Makefile
++++ libnsbmp-0.1.1/Makefile
+@@ -13,11 +13,7 @@
+ WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
+ -Wmissing-declarations -Wnested-externs -pedantic
+-# BeOS/Haiku standard library headers create warnings
+-ifneq ($(TARGET),beos)
+- WARNFLAGS := $(WARNFLAGS) -Werror
+-endif
+-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
++CFLAGS := -D_DEFAULT_SOURCE -I$(CURDIR)/include/ \
+ -I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
+ ifneq ($(GCCVER),2)
+ CFLAGS := $(CFLAGS) -std=c99