diff options
| author | Lars Ingebrigtsen | 2021-08-15 13:25:18 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2021-08-15 13:25:23 +0200 |
| commit | 55772baee1627571c0814cf2d666fb3b963ff591 (patch) | |
| tree | 7f46846d6359e73d15d0e3f0c050b257361e05d6 /src/alloc.c | |
| parent | 36964b2358f6a3a0c722b04cf5b8505f247c300c (diff) | |
| download | emacs-55772baee1627571c0814cf2d666fb3b963ff591.tar.gz emacs-55772baee1627571c0814cf2d666fb3b963ff591.zip | |
Make Emacs compile with musl instead of glibc
* src/alloc.c: musl doesn't have malloc_info (bug#50058).
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 8edcd06c843..4ea337ddbaa 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7318,7 +7318,7 @@ Frames, windows, buffers, and subprocesses count as vectors | |||
| 7318 | make_int (strings_consed)); | 7318 | make_int (strings_consed)); |
| 7319 | } | 7319 | } |
| 7320 | 7320 | ||
| 7321 | #ifdef GNU_LINUX | 7321 | #if defined GNU_LINUX && defined __GLIBC__ |
| 7322 | DEFUN ("malloc-info", Fmalloc_info, Smalloc_info, 0, 0, "", | 7322 | DEFUN ("malloc-info", Fmalloc_info, Smalloc_info, 0, 0, "", |
| 7323 | doc: /* Report malloc information to stderr. | 7323 | doc: /* Report malloc information to stderr. |
| 7324 | This function outputs to stderr an XML-formatted | 7324 | This function outputs to stderr an XML-formatted |
| @@ -7678,7 +7678,7 @@ N should be nonnegative. */); | |||
| 7678 | defsubr (&Sgarbage_collect_maybe); | 7678 | defsubr (&Sgarbage_collect_maybe); |
| 7679 | defsubr (&Smemory_info); | 7679 | defsubr (&Smemory_info); |
| 7680 | defsubr (&Smemory_use_counts); | 7680 | defsubr (&Smemory_use_counts); |
| 7681 | #ifdef GNU_LINUX | 7681 | #if defined GNU_LINUX && defined __GLIBC__ |
| 7682 | defsubr (&Smalloc_info); | 7682 | defsubr (&Smalloc_info); |
| 7683 | #endif | 7683 | #endif |
| 7684 | defsubr (&Ssuspicious_object); | 7684 | defsubr (&Ssuspicious_object); |