aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPhilipp Stephani2017-05-27 15:26:49 +0200
committerPhilipp Stephani2017-05-27 15:29:46 +0200
commita3a3ea0762d0e5d3b2cb8259a515a468736050d1 (patch)
tree58b4db413d2862dbec283a98f62be5ee78839a15 /src/alloc.c
parentb0177da7fe51b267de6ffa84a38bd0ec3f6c0fa9 (diff)
downloademacs-a3a3ea0762d0e5d3b2cb8259a515a468736050d1.tar.gz
emacs-a3a3ea0762d0e5d3b2cb8259a515a468736050d1.zip
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.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index b473ebd7ded..a1a85946ce0 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -7160,7 +7160,7 @@ We divide the value by 1024 to make sure it fits in a Lisp integer. */)
7160{ 7160{
7161 Lisp_Object end; 7161 Lisp_Object end;
7162 7162
7163#if defined HAVE_NS || !HAVE_SBRK 7163#if defined HAVE_NS || defined __APPLE__ || !HAVE_SBRK
7164 /* Avoid warning. sbrk has no relation to memory allocated anyway. */ 7164 /* Avoid warning. sbrk has no relation to memory allocated anyway. */
7165 XSETINT (end, 0); 7165 XSETINT (end, 0);
7166#else 7166#else