aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/liblmdb32/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'external/db_drivers/liblmdb32/CMakeLists.txt')
-rw-r--r--external/db_drivers/liblmdb32/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb32/CMakeLists.txt b/external/db_drivers/liblmdb32/CMakeLists.txt
index 62b800135..bca7ff51e 100644
--- a/external/db_drivers/liblmdb32/CMakeLists.txt
+++ b/external/db_drivers/liblmdb32/CMakeLists.txt
@@ -26,6 +26,10 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+if(FREEBSD)
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMDB_DSYNC=O_SYNC")
+endif()
+
set (lmdb_sources
mdb.c
midl.c)