libcap-ng: fix portability patch (unistd.h is the correct header).

This commit is contained in:
Juan RP 2014-01-11 12:07:35 +01:00
parent a6d77c71b7
commit 7031a98db4

View file

@ -1,4 +1,4 @@
Make this build with musl, uid_t/pid_t are defined in <sys/types.h>.
Make this build with musl, uid_t/pid_t are defined in <unistd.h>.
--- utils/proc-llist.h.orig 2014-01-11 11:38:42.960868985 +0100
+++ utils/proc-llist.h 2014-01-11 11:39:01.776988967 +0100
@ -6,7 +6,7 @@ Make this build with musl, uid_t/pid_t are defined in <sys/types.h>.
#ifndef PROC_HEADER
#define PROC_HEADER
+#include <sys/types.h> /* uid_t, pid_t */
+#include <unistd.h> /* uid_t, pid_t */
#include "config.h"