summaryrefslogtreecommitdiff
blob: 92a96305b4064e3ec0d4b3748bf8f84548735066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
https://gitlab.com/gsasl/libgssglue/-/merge_requests/1

* g_initialize.c:275:5: warning: implicit declaration of function 'getuid' [-Wimplicit-function-declaration]
* g_initialize.c:275:5: warning: implicit declaration of function 'geteuid' [-Wimplicit-function-declaration]

--- a/src/g_initialize.c
+++ b/src/g_initialize.c
@@ -29,6 +29,9 @@
 #include "mglueP.h"
 #include <stdlib.h>
 
+#include <unistd.h> /* getuid, geteuid */
+#include <sys/types.h> /* ditto */
+
 #include <stdio.h>
 #include <string.h>
 #include <ctype.h>