You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
1.0 KiB

Index: Makefile
--- Makefile.orig 2021-11-23 22:50:36.102487000 +0100
+++ Makefile 2021-11-23 23:13:17.951973000 +0100
@@ -193,7 +193,7 @@
# We rely on signed integer wraparound on overflow, however clang think it
# can do whatever it wants since it's an undefined behavior, so use -fwrapv
# to be sure we get the intended behavior.
-SPEC_CFLAGS := -Wall -Wextra -Wundef -Wdeclaration-after-statement
+SPEC_CFLAGS :=
SPEC_CFLAGS += $(call cc-opt-alt,-fwrapv,$(call cc-opt,-fno-strict-overflow))
SPEC_CFLAGS += $(call cc-nowarn,address-of-packed-member)
SPEC_CFLAGS += $(call cc-nowarn,unused-label)
Index: src/hlua_fcn.c
--- src/hlua_fcn.c.orig 2021-11-23 15:40:21.000000000 +0100
+++ src/hlua_fcn.c 2021-11-23 22:50:36.102979000 +0100
@@ -1539,7 +1539,8 @@
lua_pushboolean(L, 1);
return 1;
}
- } else {
+#if defined(AF_INET6) && !defined(__FreeBSD__)
+ } else if (addr1->type === AF_INET6) {
int i;
for (i = 0; i < 16; i += 4) {
@@ -1553,6 +1554,7 @@
lua_pushboolean(L, 1);
return 1;
}
+#endif
}
lua_pushboolean(L, 0);