diff options
Diffstat (limited to 'net-libs/libdom/files')
-rw-r--r-- | net-libs/libdom/files/libdom-0.1.1-glibc2.20.patch | 19 | ||||
-rw-r--r-- | net-libs/libdom/files/libdom-0.1.2-glibc2.20.patch | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/net-libs/libdom/files/libdom-0.1.1-glibc2.20.patch b/net-libs/libdom/files/libdom-0.1.1-glibc2.20.patch new file mode 100644 index 000000000000..8a8f4e31349e --- /dev/null +++ b/net-libs/libdom/files/libdom-0.1.1-glibc2.20.patch @@ -0,0 +1,19 @@ +--- libdom-0.1.1/Makefile ++++ libdom-0.1.1/Makefile +@@ -15,15 +15,11 @@ + WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wnested-externs +-# BeOS/Haiku standard library headers generate warnings +-ifneq ($(TARGET),beos) +- WARNFLAGS := $(WARNFLAGS) -Werror +-endif + # AmigaOS needs this to avoid warnings + ifeq ($(TARGET),amiga) + CFLAGS := -U__STRICT_ANSI__ $(CFLAGS) + endif +-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ ++CFLAGS := -D_DEFAULT_SOURCE -I$(CURDIR)/include/ \ + -I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS) + # Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway + ifneq ($(GCCVER),2) diff --git a/net-libs/libdom/files/libdom-0.1.2-glibc2.20.patch b/net-libs/libdom/files/libdom-0.1.2-glibc2.20.patch new file mode 100644 index 000000000000..bc843d143223 --- /dev/null +++ b/net-libs/libdom/files/libdom-0.1.2-glibc2.20.patch @@ -0,0 +1,19 @@ +--- libdom-0.1.2/Makefile ++++ libdom-0.1.2/Makefile +@@ -15,15 +15,11 @@ + WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \ + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wnested-externs +-# BeOS/Haiku standard library headers generate warnings +-ifneq ($(HOST),i586-pc-haiku) +- WARNFLAGS := $(WARNFLAGS) -Werror +-endif + # AmigaOS needs this to avoid warnings + ifeq ($(findstring amigaos,$(HOST)),amigaos) + CFLAGS := -U__STRICT_ANSI__ $(CFLAGS) + endif +-CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \ ++CFLAGS := -D_DEFAULT_SOURCE -I$(CURDIR)/include/ \ + -I$(CURDIR)/src -I$(CURDIR)/binding $(WARNFLAGS) $(CFLAGS) + # Some gcc2 versions choke on -std=c99, and it doesn't know about it anyway + ifneq ($(GCCVER),2) |