FreeBSD (6-STABLE) "hides" many declarations (like fchmod(), IPPROTO_IPV6, etc.) within '#ifdef __BSD_VISIBLE' blocks. Without this flag, compilation will produce lots of warnings and will even fail to compile daemon.c since IPPROTO_IPV6 isn't available without it.
>From looking at some include files of OpenBSD and NetBSD (via cvsweb)
they don't seem to need this flag.
Signed-off-by: Rocco Rutte <pdmef@gmx.net> --- Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Makefile +1 −1
diff --git a/Makefile b/Makefile index 7651104..46c49e0 100644 --- a/Makefile +++ b/Makefile @@ -366,7 +366,7 @@ ifeq ($(uname_O),Cygwin) endif ifeq ($(uname_S),FreeBSD) NEEDS_LIBICONV = YesPlease - BASIC_CFLAGS += -I/usr/local/include + BASIC_CFLAGS += -I/usr/local/include -D__BSD_VISIBLE BASIC_LDFLAGS += -L/usr/local/lib endif ifeq ($(uname_S),OpenBSD)
-- 1.4.4.2.g9474f