Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/blacklist make NetBSD work again.
details: https://anonhg.NetBSD.org/src/rev/dd851ce0f582
branches: trunk
changeset: 335721:dd851ce0f582
user: christos <christos%NetBSD.org@localhost>
date: Thu Jan 22 04:20:50 2015 +0000
description:
make NetBSD work again.
diffstat:
external/bsd/blacklist/Makefile.inc | 4 +++-
external/bsd/blacklist/TODO | 4 +++-
external/bsd/blacklist/lib/bl.c | 6 +++---
3 files changed, 9 insertions(+), 5 deletions(-)
diffs (55 lines):
diff -r 3e587f561803 -r dd851ce0f582 external/bsd/blacklist/Makefile.inc
--- a/external/bsd/blacklist/Makefile.inc Thu Jan 22 04:13:04 2015 +0000
+++ b/external/bsd/blacklist/Makefile.inc Thu Jan 22 04:20:50 2015 +0000
@@ -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 -r 3e587f561803 -r dd851ce0f582 external/bsd/blacklist/TODO
--- a/external/bsd/blacklist/TODO Thu Jan 22 04:13:04 2015 +0000
+++ b/external/bsd/blacklist/TODO Thu Jan 22 04:20:50 2015 +0000
@@ -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?
<bge0/4>? What to do with multiple addresses?
+- make a pidfile
+- fix CRED on linux and macosx.
diff -r 3e587f561803 -r dd851ce0f582 external/bsd/blacklist/lib/bl.c
--- a/external/bsd/blacklist/lib/bl.c Thu Jan 22 04:13:04 2015 +0000
+++ b/external/bsd/blacklist/lib/bl.c Thu Jan 22 04:20:50 2015 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
#include <sys/types.h>
@@ -99,7 +99,7 @@
/* 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
};
Home |
Main Index |
Thread Index |
Old Index