]> git.notmuchmail.org Git - notmuch/blobdiff - compat/check_getpwuid.c
getpwuid: check for standards compliance (Solaris support)
[notmuch] / compat / check_getpwuid.c
diff --git a/compat/check_getpwuid.c b/compat/check_getpwuid.c
new file mode 100644 (file)
index 0000000..c435eb8
--- /dev/null
@@ -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);
+}