blueness    15/05/25 18:04:24

  Added:                libcap-ng-0.7.5-add-unistd_h.patch
  Log:
  Fix build for musl.  Bug #550298.
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0xF52D4BBA)

Revision  Changes    Path
1.1                  sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libcap-ng/files/libcap-ng-0.7.5-add-unistd_h.patch?rev=1.1&content-type=text/plain

Index: libcap-ng-0.7.5-add-unistd_h.patch
===================================================================
utils/proc-llist.c: include <unistd.h>

proc-llist.c references pid_t and uid_t types but does not include <unistd.h>.  
This
works on glibc and uClibc because of the way their headers stack, but on musl 
(and
possible other libc) this fails.  POSIX mandates that <unistd.h> provides 
these.  See
Issue 6 at 
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html.

Signed-off-by: Anthony G. Basile <bluen...@gentoo.org>

diff -Nuar libcap-ng-0.7.5.orig/utils/proc-llist.c 
libcap-ng-0.7.5/utils/proc-llist.c
--- libcap-ng-0.7.5.orig/utils/proc-llist.c     2015-02-18 17:13:33.000000000 
-0500
+++ libcap-ng-0.7.5/utils/proc-llist.c  2015-05-25 13:39:32.196624248 -0400
@@ -24,6 +24,7 @@
 #include "config.h"
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include "proc-llist.h"
 
 void list_create(llist *l)




Reply via email to