]> git.eshelyaron.com Git - emacs.git/commitdiff
Make Emacs compile with musl instead of glibc
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Aug 2021 11:25:18 +0000 (13:25 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 15 Aug 2021 11:25:23 +0000 (13:25 +0200)
* src/alloc.c: musl doesn't have malloc_info (bug#50058).

src/alloc.c

index 8edcd06c8435a988a5aed862553b874522fcc820..4ea337ddbaa11cd4bdd89b47c9ef8eae467e9fbe 100644 (file)
@@ -7318,7 +7318,7 @@ Frames, windows, buffers, and subprocesses count as vectors
                make_int (strings_consed));
 }
 
-#ifdef GNU_LINUX
+#if defined GNU_LINUX && defined __GLIBC__
 DEFUN ("malloc-info", Fmalloc_info, Smalloc_info, 0, 0, "",
        doc: /* Report malloc information to stderr.
 This function outputs to stderr an XML-formatted
@@ -7678,7 +7678,7 @@ N should be nonnegative.  */);
   defsubr (&Sgarbage_collect_maybe);
   defsubr (&Smemory_info);
   defsubr (&Smemory_use_counts);
-#ifdef GNU_LINUX
+#if defined GNU_LINUX && defined __GLIBC__
   defsubr (&Smalloc_info);
 #endif
   defsubr (&Ssuspicious_object);