void-packages/srcpkgs/lua54-lualdap/patches/c89-is-broken.patch

16 lines
706 B
Diff

Index: lua54-lualdap-1.2.5/lua54/Makefile
===================================================================
--- lua54-lualdap-1.2.5.orig/lua54/Makefile
+++ lua54-lualdap-1.2.5/lua54/Makefile
@@ -15,8 +15,8 @@ endif
CFLAGS_WARN := -pedantic -Wall -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
-override CPPFLAGS := -DPACKAGE_STRING="\"$(PACKAGE_STRING)\"" -DLUA_C89_NUMBERS $(CPPFLAGS)
-override CFLAGS := -O2 -fPIC -std=c89 $(CFLAGS_WARN) $(CFLAGS)
+override CPPFLAGS := -DPACKAGE_STRING="\"$(PACKAGE_STRING)\"" $(CPPFLAGS)
+override CFLAGS := -O2 -fPIC $(CFLAGS_WARN) $(CFLAGS)
ifdef BUILD_VARIANT
REPORT_DIR := test-reports/$(BUILD_VARIANT)