Define IP_MULTICAST to get the IP multicast macro/struct definitions
authorwtc
Wed, 06 May 1998 19:53:26 +0000
changeset 93 167712b61eae9b2bfba071589885743a5de1978c
parent 92 ebfa8639f35143d66c44c4dabd6c8b95aa479d87
child 94 a9bdc4f521b44402f532ef07f6e29ab6fc11fd75
push idunknown
push userunknown
push dateunknown
Define IP_MULTICAST to get the IP multicast macro/struct definitions in netinet/in.h on SINIX 5.43. We acknowledge the help of Sanjay Gupta <gupta@informix.com>.
config/SINIX.mk
--- a/config/SINIX.mk
+++ b/config/SINIX.mk
@@ -50,16 +50,23 @@ ifdef BUILD_OPT
 OPTIMIZER		= -O -F Olimit,4000
 endif
 MKSHLIB			= $(LD) -G -z defs -h $(@:$(OBJDIR)/%.so=%.so)
 #DSO_LDOPTS		= -G -W l,-Blargedynsym
 endif
 
 ODD_CFLAGS		+= -DSVR4 -DSNI -DRELIANTUNIX -Dsinix -D_SVID_GETTOD
 
+# On SINIX 5.43, need to define IP_MULTICAST in order to get the
+# IP multicast macro and struct definitions in netinet/in.h.
+# (SINIX 5.42 does not have IP multicast at all.)
+ifeq ($(OS_RELEASE),5.43)
+ODD_CFLAGS		+= -DIP_MULTICAST
+endif
+
 CPU_ARCH		= mips
 
 RANLIB			= /bin/true
 
 # For purify
 NOMD_OS_CFLAGS		= $(ODD_CFLAGS)
 
 # we do not have -MDupdate ...