diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-28 17:00:32 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-03-28 20:40:52 -0700 |
commit | 1e3051c5ad1748ec119a856cb6856b3bc1cb3fc8 (patch) | |
tree | 705384dbf8360d14077002a9500b66beb741dd8c /net/softflowd/patches | |
parent | e06d851a42babc615709af9da52f998c9dcf37d4 (diff) |
softflowd: fix compilation with newer musl
__uid_t is a glibc extension. Switch to standard uid_t.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'net/softflowd/patches')
-rw-r--r-- | net/softflowd/patches/020-uid.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/softflowd/patches/020-uid.patch b/net/softflowd/patches/020-uid.patch new file mode 100644 index 000000000..fe2ea7c1e --- /dev/null +++ b/net/softflowd/patches/020-uid.patch @@ -0,0 +1,11 @@ +--- a/common.h ++++ b/common.h +@@ -179,7 +179,7 @@ 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); |