aboutsummaryrefslogtreecommitdiffstats
path: root/community/softflowd/fix-musl.patch
blob: 6290cfc7d7963978778b6e48f8cd408c0657848b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)