diff --git a/external/bsd/blacklist/Makefile.inc b/external/bsd/blacklist/Makefile.inc index 8b742a97f72c..bc8ce531a768 100644 --- a/external/bsd/blacklist/Makefile.inc +++ b/external/bsd/blacklist/Makefile.inc @@ -1,6 +1,8 @@ -# $NetBSD: Makefile.inc,v 1.1 2015/01/21 16:16:00 christos Exp $ +# $NetBSD: Makefile.inc,v 1.2 2015/01/22 04:20:50 christos Exp $ WARNS=6 LDADD+= -lblacklist DPADD+= ${LIBBLACKLIST} CPPFLAGS+= -I${.CURDIR}/../include +CPPFLAGS+=-DHAVE_STRUCT_SOCKADDR_SA_LEN -DHAVE_UTIL_H -DHAVE_DB_H + diff --git a/external/bsd/blacklist/TODO b/external/bsd/blacklist/TODO index 24bace4f3c7d..d201b5be0941 100644 --- a/external/bsd/blacklist/TODO +++ b/external/bsd/blacklist/TODO @@ -1,4 +1,4 @@ -# $NetBSD: TODO,v 1.2 2015/01/21 23:28:02 christos Exp $ +# $NetBSD: TODO,v 1.3 2015/01/22 04:20:50 christos Exp $ - don't poll periodically, find the next timeout - perhaps pass addresses through the socket too? @@ -8,3 +8,5 @@ directly, or talk to the daemon to have it do it? - perhaps handle interfaces too instead of addresses for dynamic ip? ? What to do with multiple addresses? +- make a pidfile +- fix CRED on linux and macosx. diff --git a/external/bsd/blacklist/lib/bl.c b/external/bsd/blacklist/lib/bl.c index 50a975ec8276..1c1d5f51216e 100644 --- a/external/bsd/blacklist/lib/bl.c +++ b/external/bsd/blacklist/lib/bl.c @@ -1,4 +1,4 @@ -/* $NetBSD: bl.c,v 1.13 2015/01/22 03:48:07 christos Exp $ */ +/* $NetBSD: bl.c,v 1.14 2015/01/22 04:20:50 christos Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -33,7 +33,7 @@ #endif #include -__RCSID("$NetBSD: bl.c,v 1.13 2015/01/22 03:48:07 christos Exp $"); +__RCSID("$NetBSD: bl.c,v 1.14 2015/01/22 04:20:50 christos Exp $"); #include #include @@ -99,7 +99,7 @@ bl_init(bl_t b, bool srv) /* AF_UNIX address of local logger */ struct sockaddr_un sun = { .sun_family = AF_LOCAL, -#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN +#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN .sun_len = sizeof(sun), #endif };