pkgsrc/security/polkit/patches/patch-test_mocklibc_src_pwd.c
youri 2dd17306a2 Import polkit-0.113nb1 as security/polkit.
PolicyKit is a toolkit for defining and handling authorizations.  It
is used for allowing unprivileged processes to speak to privileged
processes.
2016-05-20 18:39:33 +00:00

19 lines
417 B
C

$NetBSD: patch-test_mocklibc_src_pwd.c,v 1.1 2016/05/20 18:39:33 youri Exp $
* XXX: no fgetpwent(3)
--- test/mocklibc/src/pwd.c.orig 2014-01-14 22:42:25.000000000 +0000
+++ test/mocklibc/src/pwd.c
@@ -27,6 +27,12 @@
static FILE *global_stream = NULL;
+#ifdef __NetBSD__
+static struct passwd *fgetpwent(FILE* stream) {
+ return NULL;
+}
+#endif
+
void setpwent(void) {
if (global_stream)
endpwent();