From 08cbf5a04d9d252f1eec34cb0fea3101e5fa9b88 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 14 Feb 2017 22:14:15 +0000 Subject: [PATCH] Enable a few more NetBSD functions Change-Id: Ia8463adfb12b465bd43a62aee9f14b21eaa13b19 --- include/unistd.h | 2 +- lib/libc/compat-43/Makefile.inc | 9 ++++----- lib/libutil/Makefile | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 874ef57e8..e7ad5c843 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -281,9 +281,9 @@ int lockf(int, int, off_t); ssize_t readlink(const char * __restrict, char * __restrict, size_t); #endif void *sbrk(intptr_t); -#if !defined(__minix) /* XXX prototype wrong! */ int setpgrp(pid_t, pid_t); /* obsoleted by setpgid() */ +#if !defined(__minix) int setregid(gid_t, gid_t); int setreuid(uid_t, uid_t); #endif /* !defined(__minix) */ diff --git a/lib/libc/compat-43/Makefile.inc b/lib/libc/compat-43/Makefile.inc index 00e0e8160..a15cf214b 100644 --- a/lib/libc/compat-43/Makefile.inc +++ b/lib/libc/compat-43/Makefile.inc @@ -2,15 +2,14 @@ # from: @(#)Makefile.inc 8.1 (Berkeley) 6/2/93 # Unsupported by Minix -# gethostid.c \ -# sethostid.c setpgrp.c \ -# setrgid.c setruid.c sigcompat.c +# setrgid.c setruid.c # compat-43 sources .PATH: ${ARCHDIR}/compat-43 ${.CURDIR}/compat-43 -SRCS+= creat.c getdtablesize.c \ - killpg.c setpgrp.c \ +SRCS+= creat.c getdtablesize.c gethostid.c \ + killpg.c sethostid.c setpgrp.c \ + sigcompat.c .if !defined(AUDIT) SRCS+= getwd.c diff --git a/lib/libutil/Makefile b/lib/libutil/Makefile index af15de727..d1af38fd2 100644 --- a/lib/libutil/Makefile +++ b/lib/libutil/Makefile @@ -15,7 +15,7 @@ SRCS+= efun.c \ \ getfsspecname.c getmntopts.c getmaxpartitions.c \ \ - \ + if_media.c \ login.c loginx.c login_cap.c login_tty.c logout.c logoutx.c \ logwtmp.c logwtmpx.c opendisk.c parsedate.y \ passwd.c pw_scan.c pidfile.c pidlock.c pty.c \ -- 2.44.0