summaryrefslogtreecommitdiff
path: root/net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch')
-rw-r--r--net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch b/net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch
new file mode 100644
index 000000000000..e7f858febd91
--- /dev/null
+++ b/net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch
@@ -0,0 +1,19 @@
+--- oftpd-0.3.7/src/daemon_assert.c
++++ oftpd-0.3.7/src/daemon_assert.c
+@@ -3,6 +3,7 @@
+ #include <pthread.h>
+ #include <syslog.h>
+ #include <stdio.h>
++#include <unistd.h>
+
+ #ifndef NDEBUG
+ void daemon_assert_fail(const char *assertion,
+@@ -13,7 +13,7 @@
+ {
+ syslog(LOG_CRIT, "%s:%d: %s: %s", file, line, function, assertion);
+ fprintf(stderr, "%s:%d: %s: %s\n", file, line, function, assertion);
+- exit(1);
++ _exit(1);
+ }
+ #endif
+