git » remoteu2f » commit 84a7aac

libpam: Add missing #include <pwd.h>

author Alberto Bertogli
2016-08-23 01:05:27 UTC
committer Alberto Bertogli
2016-08-23 01:20:03 UTC
parent 24597d8361a4b20ca0904ca9316a3f39dfffaa3c

libpam: Add missing #include <pwd.h>

getpwnam() is defined in pwd.h, but its include was missing, so this patch
fixes it.

libpam/pam_prompt_exec.c +1 -0

diff --git a/libpam/pam_prompt_exec.c b/libpam/pam_prompt_exec.c
index c5014f7..0b9eafb 100644
--- a/libpam/pam_prompt_exec.c
+++ b/libpam/pam_prompt_exec.c
@@ -10,6 +10,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <pwd.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>