aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/check_getpwuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/check_getpwuid.c')
-rw-r--r--compat/check_getpwuid.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/compat/check_getpwuid.c b/compat/check_getpwuid.c
new file mode 100644
index 00000000..c435eb89
--- /dev/null
+++ b/compat/check_getpwuid.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <pwd.h>
+
+int main()
+{
+ struct passwd passwd, *ignored;
+
+ (void) getpwuid_r (0, &passwd, NULL, 0, &ignored);
+
+ return (0);
+}