]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common/event_socket.h: include <errno.h> to use errno
authorKefu Chai <kchai@redhat.com>
Tue, 17 Oct 2017 11:57:36 +0000 (19:57 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Oct 2017 11:57:39 +0000 (19:57 +0800)
OSX needs this also.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/event_socket.h

index 79e8e15a716a80a61fefe03e1fd7717186cb6d4d..9224f7683faf40892fab67b766876d03d0bab3e9 100644 (file)
@@ -18,7 +18,7 @@
 #define CEPH_COMMON_EVENT_SOCKET_H
 
 #include <unistd.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__APPLE__)
 #include <errno.h>
 #endif
 #include "include/event_type.h"