Commit a3a3ea07 authored by Philipp Stephani's avatar Philipp Stephani
Browse files

Avoid another compiler warning on macOS

When configured with --without-ns, HAVE_NS is not defined on macOS,
thus 'memory-limit' calls the deprecated sbrk(2) function.  Avoid that
by using the pre-defined __APPLE__ preprocessor macro.

* src/alloc.c (Fmemory_limit): Never use sbrk(2) on macOS.
parent b0177da7
......@@ -7160,7 +7160,7 @@ We divide the value by 1024 to make sure it fits in a Lisp integer. */)
Lisp_Object end;
#if defined HAVE_NS || !HAVE_SBRK
#if defined HAVE_NS || defined __APPLE__ || !HAVE_SBRK
/* Avoid warning. sbrk has no relation to memory allocated anyway. */
XSETINT (end, 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment