19 lines
474 B
C
19 lines
474 B
C
$NetBSD: patch-test_mocklibc_src_pwd.c,v 1.3 2016/12/03 01:58:50 marino 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;
|
|
|
|
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
|
|
+static struct passwd *fgetpwent(FILE* stream) {
|
|
+ return NULL;
|
|
+}
|
|
+#endif
|
|
+
|
|
void setpwent(void) {
|
|
if (global_stream)
|
|
endpwent();
|