aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_freebsd_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/unix/ngx_freebsd_config.h')
-rw-r--r--src/os/unix/ngx_freebsd_config.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_config.h b/src/os/unix/ngx_freebsd_config.h
index e447340a8..f0a8430fe 100644
--- a/src/os/unix/ngx_freebsd_config.h
+++ b/src/os/unix/ngx_freebsd_config.h
@@ -29,6 +29,7 @@
#include <grp.h>
#include <netdb.h>
#include <dirent.h>
+#include <libutil.h> /* setproctitle() brefore 4.1 */
#include <osreldate.h>
#include <ngx_auto_config.h>
@@ -72,6 +73,12 @@
#endif
+#if (__FreeBSD_version < 430000 || __FreeBSD_version < 500012)
+
+pid_t rfork_thread(int flags, void *stack, int (*func)(void *arg), void *arg);
+
+#endif
+
#ifndef IOV_MAX
#define IOV_MAX 1024
#endif