HAVE_INET_PTON and HAVE_INET_NTOP settable from make

This commit is contained in:
Richard Aas 2011-12-06 11:42:33 +00:00
parent cad21b5dcd
commit 45be9e8b3a

View file

@ -482,11 +482,19 @@ ifneq ($(HAVE_SYSLOG),)
CFLAGS += -DHAVE_SYSLOG
endif
HAVE_INET_NTOP := 1
CFLAGS += -DHAVE_FORK
ifneq ($(HAVE_INET_NTOP),)
CFLAGS += -DHAVE_INET_NTOP
endif
CFLAGS += -DHAVE_PWD_H
ifneq ($(OS),darwin)
CFLAGS += -DHAVE_POLL # Darwin: poll() does not support devices
HAVE_INET_PTON := 1
endif
ifneq ($(HAVE_INET_PTON),)
CFLAGS += -DHAVE_INET_PTON
endif
CFLAGS += -DHAVE_SELECT -DHAVE_SELECT_H