]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/buffer: Extend win32 platform check
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 8 Oct 2019 11:59:41 +0000 (14:59 +0300)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 4 Jun 2020 15:52:16 +0000 (15:52 +0000)
<sys/mman.h> is unavailable on Windows. There's a check
for __CYGWIN__ that will have to be extended to look for
_WIN32.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/include/buffer.h

index 3f00dbcc2a507061726bd531070cf06686f3b866..a895e1c967ab3bea2b118db969efebe0b9a4de95 100644 (file)
@@ -34,7 +34,7 @@
 #include <stdint.h>
 #include <string.h>
 
-#ifndef __CYGWIN__
+#if !defined(__CYGWIN__) && !defined(_WIN32)
 # include <sys/mman.h>
 #endif