NetBSD has setusercontext() since Feb 2000.
detect it by "1.4Q or more recent" (are there better ways? - it is not about kernel API...)
This commit is contained in:
parent
b3e56e61e9
commit
97c5ff842d
|
@ -956,6 +956,9 @@ typedef int pid_t;
|
|||
# if defined(__NetBSD__) && ((__NetBSD_Version__ > 102070000) || (NetBSD1_2 > 8) || defined(NetBSD1_4) || defined(NetBSD1_3))
|
||||
# define HASURANDOMDEV 1 /* has /dev/urandom(4) */
|
||||
# endif /* defined(__NetBSD__) && ((__NetBSD_Version__ > 102070000) || (NetBSD1_2 > 8) || defined(NetBSD1_4) || defined(NetBSD1_3)) */
|
||||
# if defined(__NetBSD__) && defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104170000
|
||||
# define HASSETUSERCONTEXT 1 /* BSDI-style login classes */
|
||||
# endif
|
||||
# if defined(__FreeBSD__)
|
||||
# define HASSETLOGIN 1 /* has setlogin(2) */
|
||||
# if __FreeBSD_version >= 227001
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.6 2000/07/22 03:30:40 cgd Exp $
|
||||
# $NetBSD: Makefile,v 1.7 2000/08/20 19:37:45 itojun Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
|
@ -13,8 +13,8 @@ BINMODE= 4555
|
|||
|
||||
LIBSMUTILDIR!= cd ${.CURDIR}/../libsmutil; ${MAKE} print-objdir
|
||||
|
||||
LDADD+= -lwrap -L${LIBSMUTILDIR} -lsmutil
|
||||
DPADD+= ${LIBWRAP} ${LIBSMUTILDIR}/libsmutil.a
|
||||
LDADD+= -lwrap -L${LIBSMUTILDIR} -lsmutil -lutil
|
||||
DPADD+= ${LIBWRAP} ${LIBSMUTILDIR}/libsmutil.a ${LIBUTIL}
|
||||
|
||||
SRCS= alias.c arpadate.c bf_torek.c clock.c collect.c \
|
||||
conf.c control.c convtime.c daemon.c deliver.c \
|
||||
|
|
Loading…
Reference in New Issue