linamh/net-ftp/oftpd/files/oftpd-0.3.7-unistd.patch
Mario Fetka f3987e65cf Bump
2020-01-23 11:57:54 +01:00

20 lines
448 B
Diff

--- 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