Commit f13ba3b
committed
va: include <unistd.h> for getuid/getgid in secure_getenv fallback
On platforms like NetBSD (and other non-glibc systems), getuid(),
geteuid(), getgid(), and getegid() are not implicitly available.
They require an explicit include of <unistd.h> per POSIX. Without
it the build fails with undefined function errors.
Fixes: #888
Signed-off-by: Carl.Zhang <carl.zhang@intel.com>1 parent 28388a0 commit f13ba3b
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
0 commit comments