Add a check for the getpeereid() function in macOS

This commit is contained in:
Christophe de Dinechin 2018-06-26 16:33:41 +02:00
parent f789c66fb7
commit 49621a97f6
1 changed files with 13 additions and 0 deletions

13
config/check_getpeereid.c Normal file
View File

@ -0,0 +1,13 @@
#include <sys/types.h>
#include <unistd.h>
int main()
{
if (0) {
int socket = 0;
uid_t euid = 0;
gid_t egid = 0;
getpeereid(socket, &euid, &egid);
}
return 0;
}