net-ftp/vsftpd: restore still used patch, bug #678680
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 24 Feb 2019 17:50:04 +0000 (17:50 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 24 Feb 2019 18:02:41 +0000 (18:02 +0000)
Closes: https://bugs.gentoo.org/678680
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch [new file with mode: 0644]

diff --git a/net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch b/net-ftp/vsftpd/files/vsftpd-3.0.2-alpha.patch
new file mode 100644 (file)
index 0000000..2445bb5
--- /dev/null
@@ -0,0 +1,16 @@
+Author: Michael Cree <mcree@orcon.net.nz>
+Description: Fixing FTBFS on alpha (Closes: #656182).
+
+diff -Naurp vsftpd.orig/sysdeputil.c vsftpd/sysdeputil.c
+--- vsftpd.orig/sysdeputil.c   2010-03-26 04:25:33.000000000 +0100
++++ vsftpd/sysdeputil.c        2012-01-21 10:53:37.353802546 +0100
+@@ -81,6 +81,9 @@
+   #include <linux/unistd.h>
+   #include <errno.h>
+   #include <syscall.h>
++  #if defined(__alpha__)
++    #define __NR_getpid  __NR_getxpid
++  #endif
+ #endif
+ 
+ #if defined(__linux__) && !defined(__ia64__) && !defined(__s390__)