make NetBSD work again.

This commit is contained in:
christos 2015-01-22 04:20:50 +00:00
parent 1f0a764fdf
commit 753229811a
3 changed files with 9 additions and 5 deletions

View File

@ -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

View File

@ -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.

View File

@ -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 @@ 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
};