From acb2ee8ae2aff82b4ff5671d8374fac523af9594 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 1 Apr 2014 23:02:26 +0200 Subject: [PATCH] libcap-ng: fixed to build on musl by including sys/types.h --- .../libcap-ng-include_sys_types.h.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 base/libcap-ng/libcap-ng-include_sys_types.h.patch diff --git a/base/libcap-ng/libcap-ng-include_sys_types.h.patch b/base/libcap-ng/libcap-ng-include_sys_types.h.patch new file mode 100644 index 000000000..65fc1195b --- /dev/null +++ b/base/libcap-ng/libcap-ng-include_sys_types.h.patch @@ -0,0 +1,30 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../libcap-ng/libcap-ng-include_sys_types.h.patch +# Copyright (C) 2014 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +pid_t and uid_t are defined in sys/types.h + +Note: Bug detected when building against musl libc. + +--- a/utils/proc-llist.h 2014-04-01 22:53:46.970320837 +0200 ++++ b/utils/proc-llist.h 2014-04-01 22:54:41.227573407 +0200 +@@ -26,6 +26,7 @@ + + #include "config.h" + ++#include /* for pid_t, uid_t */ + + /* This is the node of the linked list. Any data elements that are per + * record goes here. */