aboutsummaryrefslogtreecommitdiffstats
path: root/community/softflowd/fix-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/softflowd/fix-musl.patch')
-rw-r--r--community/softflowd/fix-musl.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/community/softflowd/fix-musl.patch b/community/softflowd/fix-musl.patch
new file mode 100644
index 0000000000..6290cfc7d7
--- /dev/null
+++ b/community/softflowd/fix-musl.patch
@@ -0,0 +1,27 @@
+From 020dd2a325a15ba8bd995e5ea19ba23477b85e58 Mon Sep 17 00:00:00 2001
+From: Rosen Penev <rosenp@gmail.com>
+Date: Sat, 28 Mar 2020 17:20:00 -0700
+Subject: [PATCH] fix compilation with musl
+
+__uid_t is a glibc type.
+---
+ common.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/common.h b/common.h
+index f963bec..edb69d1 100644
+--- a/common.h
++++ b/common.h
+@@ -179,10 +179,10 @@ struct ip6_ext {
+
+ /* following lines are copy from unistd.h in Linux for avoidance warnings in compilation */
+ #if defined(HAVE_SETRESGID) && !defined(_GNU_SOURCE)
+-extern int setresgid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
++extern int setresgid (uid_t __ruid, uid_t __euid, uid_t __suid);
+ #endif
+ #if defined(HAVE_SETRESUID) && !defined(_GNU_SOURCE)
+-extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
++extern int setresuid (uid_t __ruid, uid_t __euid, uid_t __suid);
+ #endif
+
+ #if defined (HAVE_DECL_HTONLL) && !defined (HAVE_DECL_HTOBE64)