Skip to content

Commit b043003

Browse files
committed
Use HAVE_XCODE for ftruncate condition.
1 parent 98acba1 commit b043003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/memory/map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ bool map::remap_(size_t size) NOEXCEPT
558558
bool map::resize_(size_t size) NOEXCEPT
559559
{
560560
// Disk full detection, any other failure is an abort.
561-
#if defined(HAVE_APPLE)
561+
#if defined(HAVE_XCODE)
562562
// TODO: implement fallocate for macOS (open and write a byte per block).
563563
if (::ftruncate(opened_, size) == fail)
564564
#else

0 commit comments

Comments
 (0)