From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 6A7C54696F5 for ; Tue, 12 May 2020 15:33:30 +0300 (MSK) From: sergeyb@tarantool.org Date: Tue, 12 May 2020 15:32:22 +0300 Message-Id: <894d499b90561c9390776e753d456ac801a16ae4.1589284160.git.sergeyb@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 05/11] sql: use mremap() on OpenBSD List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: o.piskunov@tarantool.org From: Sergey Bronnikov Part of #4967 --- src/box/sql/os_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/box/sql/os_unix.c b/src/box/sql/os_unix.c index 683a71d00..b351c5500 100644 --- a/src/box/sql/os_unix.c +++ b/src/box/sql/os_unix.c @@ -1102,7 +1102,7 @@ unixRemapfile(unixFile * pFd, /* File descriptor object */ /* Unmap any pages of the existing mapping that cannot be reused. */ if (nReuse != nOrig) munmap(pReq, nOrig - nReuse); - #if !defined(__APPLE__) && !defined(__FreeBSD__) + #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) pNew = mremap(pOrig, nReuse, nNew, MREMAP_MAYMOVE); #else pNew = mmap(pReq, nNew - nReuse, flags, MAP_SHARED, h, nReuse); -- 2.23.0