util.pposix: rfork() seems to be FreeBSD only (fixes #412)
authorKim Alvefur <zash@zash.se>
Mon, 19 Dec 2016 08:51:50 +0100
changeset 7792 93dd90309779
parent 7790 200f1f6306a7
child 7793 0310ab4f277f
util.pposix: rfork() seems to be FreeBSD only (fixes #412)
util-src/pposix.c
--- a/util-src/pposix.c	Thu Dec 15 07:03:52 2016 +0100
+++ b/util-src/pposix.c	Mon Dec 19 08:51:50 2016 +0100
@@ -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