Revert "libutil: add getmaxpartitions() implementation"

This reverts commit 22ad44d6a9fa80d47806bf1897394569b6c15b8a.

With the MIB service implemented, this hack is no longer necessary.

Change-Id: Ic969c2dcecd6fc9ce283d1dda6518796869875e3
This commit is contained in:
Jean-Baptiste Boric 2016-03-13 19:30:35 +01:00 committed by David van Moolenbroek
parent 7ecc6a9247
commit 135965dc20
3 changed files with 1 additions and 14 deletions

View File

@ -13,7 +13,7 @@ CPPFLAGS+=-DLIBC_SCCS -I${.CURDIR}
LINTFLAGS+=-w
SRCS+= efun.c \
\
getfsspecname.c getmntopts.c \
getfsspecname.c getmntopts.c getmaxpartitions.c \
\
\
login.c loginx.c login_cap.c login_tty.c logout.c logoutx.c \
@ -35,10 +35,6 @@ MAN= efun.3 \
snprintb.3 sockaddr_snprintf.3 stat_flags.3 strpct.3 ttyaction.3 \
ttymsg.3 util.3
.if defined(__MINIX)
.include "${NETBSDSRCDIR}/minix/lib/libutil/Makefile.inc"
.endif
YPREFIX=__pd
.PATH: ${NETBSDSRCDIR}/lib/libc/gen

View File

@ -1,3 +0,0 @@
.PATH: ${NETBSDSRCDIR}/minix/lib/libutil
SRCS+= getmaxpartitions.c

View File

@ -1,6 +0,0 @@
#include <machine/partition.h>
int getmaxpartitions(void)
{
return NR_PARTITIONS;
}