swiften: fix cross build

This commit is contained in:
Michael Gehring 2016-09-07 10:33:51 +02:00
parent 4861cbb06d
commit 8b754a3e93

View File

@ -0,0 +1,19 @@
--- 3rdParty/LibMiniUPnPc/SConscript.orig 2016-09-07 10:29:12.251340787 +0200
+++ 3rdParty/LibMiniUPnPc/SConscript 2016-09-07 10:29:49.165342691 +0200
@@ -46,11 +46,11 @@
if myenv["PLATFORM"] == "win32":
myenv.Append(CCFLAGS = ["-DWIN32", "-D_WIN32_WINNT=0x0501"])
- if myenv["PLATFORM"] != "win32" and myenv["PLATFORM"] != "darwin":
- conf = Configure(conf_env)
- if conf.CheckTypeSize("struct ip_mreqn", includes="#include <netinet/in.h>") == 0:
- myenv.Append(CCFLAGS = ["-DNEED_STRUCT_IP_MREQN"])
- conf.Finish()
+ #if myenv["PLATFORM"] != "win32" and myenv["PLATFORM"] != "darwin":
+ # conf = Configure(conf_env)
+ # if conf.CheckTypeSize("struct ip_mreqn", includes="#include <netinet/in.h>") == 0:
+ # myenv.Append(CCFLAGS = ["-DNEED_STRUCT_IP_MREQN"])
+ # conf.Finish()
myenv.WriteVal("src/miniupnpc/miniupnpcstrings.h", myenv.Value(
"""