aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-12-19 08:51:50 +0100
committerKim Alvefur <zash@zash.se>2016-12-19 08:51:50 +0100
commit4bacd7b4fc1ccdfc5c5257d3683137c81569da87 (patch)
treebd3cc017b8c70f867ae8eef7415269a8c453dbd2 /util-src
parentaedd689b72629139390f23f4fbd002307d3a0fec (diff)
downloadprosody-4bacd7b4fc1ccdfc5c5257d3683137c81569da87.tar.gz
prosody-4bacd7b4fc1ccdfc5c5257d3683137c81569da87.zip
util.pposix: rfork() seems to be FreeBSD only (fixes #412)
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index b48465d3..7037730f 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -49,9 +49,9 @@
#define WITH_MALLINFO
#endif
-#if defined(RFPROC) && defined(EV_SET)
+#if defined(__FreeBSD__) && defined(RFPROC)
/*
- * On *BSD, calling fork() is equivalent to rfork(RFPROC | RFFDG).
+ * On FreeBSD, calling fork() is equivalent to rfork(RFPROC | RFFDG).
*
* RFFDG being set means that the file descriptor table is copied,
* otherwise it's shared. We want the later, otherwise libevent gets