diff options
author | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2014-02-05 20:24:13 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2014-02-05 20:24:40 +0100 |
commit | 479c4ec9daa04d204d6b3e1ce44af077dc9b437d (patch) | |
tree | 735aa40f1e4c05f4e256388745769befe9adbf46 /main/vsftpd/wtmpx_file.patch | |
parent | b99a8fe7be8e04db750ca4cf28f9ea73a032f946 (diff) | |
download | aports-479c4ec9daa04d204d6b3e1ce44af077dc9b437d.tar.bz2 aports-479c4ec9daa04d204d6b3e1ce44af077dc9b437d.tar.xz |
main/vsftpd: fix musl build
Diffstat (limited to 'main/vsftpd/wtmpx_file.patch')
-rw-r--r-- | main/vsftpd/wtmpx_file.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/vsftpd/wtmpx_file.patch b/main/vsftpd/wtmpx_file.patch new file mode 100644 index 0000000000..6ca8416933 --- /dev/null +++ b/main/vsftpd/wtmpx_file.patch @@ -0,0 +1,35 @@ +diff -rupN a/seccompsandbox.c b/seccompsandbox.c +--- a/seccompsandbox.c 2012-09-18 08:52:30.000000000 +0200 ++++ b/seccompsandbox.c 2014-02-05 20:22:15.919607188 +0100 +@@ -21,7 +21,7 @@ + + #include <netinet/in.h> + +-#include <sys/fcntl.h> ++#include <fcntl.h> + #include <sys/mman.h> + #include <sys/prctl.h> + #include <sys/socket.h> +diff -rupN a/sysdeputil.c b/sysdeputil.c +--- a/sysdeputil.c 2012-09-16 06:18:04.000000000 +0200 ++++ b/sysdeputil.c 2014-02-05 20:20:07.212933389 +0100 +@@ -1216,7 +1216,9 @@ vsf_insert_uwtmp(const struct mystr* p_u + setutxent(); + (void) pututxline(&s_utent); + endutxent(); ++#if defined(WTMPX_FILE) + updwtmpx(WTMPX_FILE, &s_utent); ++#endif + } + + void +@@ -1235,7 +1237,9 @@ vsf_remove_uwtmp(void) + (void) pututxline(&s_utent); + endutxent(); + s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec(); ++#if defined(WTMPX_FILE) + updwtmpx(WTMPX_FILE, &s_utent); ++#endif + } + + #endif /* !VSF_SYSDEP_HAVE_UTMPX */ |