summaryrefslogtreecommitdiffstats
path: root/src/common/SubProcess.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-09-09 16:12:04 +0200
committerKefu Chai <kchai@redhat.com>2017-09-16 04:43:32 +0200
commit3475735e8acc3827f9a5ce7452279655d0935234 (patch)
tree931cb01dd6ae7be5eafc16e15f2c4df5a86b288c /src/common/SubProcess.h
parentcommon/io_priority: include <errno.h> on osx (diff)
downloadceph-3475735e8acc3827f9a5ce7452279655d0935234.tar.xz
ceph-3475735e8acc3827f9a5ce7452279655d0935234.zip
os,common: check __APPLE__ for osx not DARWIN
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/common/SubProcess.h')
-rw-r--r--src/common/SubProcess.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/SubProcess.h b/src/common/SubProcess.h
index ce9559c5eec..8d368d56ca8 100644
--- a/src/common/SubProcess.h
+++ b/src/common/SubProcess.h
@@ -24,7 +24,7 @@
#include <iostream>
#include <include/assert.h>
#include <common/errno.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__APPLE__)
#include <sys/types.h>
#include <signal.h>
#endif