Move HAVE_SOCKADDR_SA_LEN=1 for darwin targets

This commit is contained in:
Andrew Johnson
2020-09-25 12:04:24 -05:00
committed by Brendan Chandler
parent b2c4f0d015
commit 708cecfadc
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,6 @@
# Definitions for darwin-x86 host builds
# Sites may override these definitions in CONFIG_SITE.darwin-x86.Common
#-------------------------------------------------------
#support for IPv6 etc.
OP_SYS_CFLAGS += -DHAVE_SOCKADDR_SA_LEN=1
#Include definitions common to unix hosts
include $(CONFIG)/os/CONFIG.UnixCommon.Common

View File

@@ -30,8 +30,10 @@ ARCH_DEP_LDFLAGS += $(ARCH_DEP_FLAGS)
#
# Special flags for Darwin
# No common blocks (as required when using shared libraries)
# OS provides socket address length
#
OP_SYS_CFLAGS += -fno-common
OP_SYS_CFLAGS += -DHAVE_SOCKADDR_SA_LEN=1
#
# Darwin os definition