From 876faab1d8443a02a504117fc405688a1c33b02e Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Wed, 16 Aug 2017 11:19:25 +0300 Subject: [PATCH] mdbx: fix mode_t typedef. Fix https://github.com/leo-yuriev/libmdbx/issues/15 Change-Id: I32bb6b0fbc710c3706a66b398711c29cb6b9a241 --- mdbx.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mdbx.h b/mdbx.h index 276c3f98..416a8571 100644 --- a/mdbx.h +++ b/mdbx.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2015-2017 Leonid Yuriev * and other libmdbx authors: please see AUTHORS file. * All rights reserved. @@ -70,7 +70,9 @@ #include #include -typedef unsigned mode_t; +#ifndef __mode_t_defined +typedef unsigned short mode_t; +#endif typedef HANDLE mdbx_filehandle_t; typedef DWORD mdbx_pid_t; typedef DWORD mdbx_tid_t;