]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Fix compile on Linux
authorRoy Marples <roy@marples.name>
Wed, 22 Jan 2020 16:24:38 +0000 (16:24 +0000)
committerRoy Marples <roy@marples.name>
Wed, 22 Jan 2020 16:24:38 +0000 (16:24 +0000)
setgroup requires <grp.h>

src/privsep.c

index 795472950075b92088b2623fffa5f956edc4be14..d3dfd503a30c64ffb62b8c43858c50001ac1dad9 100644 (file)
 #endif
 
 #include <assert.h>
-#include <pwd.h>
 #include <errno.h>
 #include <fcntl.h>
+#include <grp.h>
 #include <paths.h>
+#include <pwd.h>
 #include <stddef.h>    /* For offsetof, struct padding debug */
 #include <signal.h>
 #include <stdlib.h>