From: Stafford Horne Date: Thu, 28 Oct 2021 21:27:17 +0000 (+0900) Subject: Fix compiler issue with mmap_internal X-Git-Tag: glibc-2.35~375 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6446c725d4df7d1a13fcf09be43975b263ad5b3d;p=thirdparty%2Fglibc.git Fix compiler issue with mmap_internal Compiling mmap_internal fails to compile when we use -1 for MMAP2_PAGE_UNIT on 32 bit architectures. The error is as follows: ../sysdeps/unix/sysv/linux/mmap_internal.h:30:8: error: unknown type name 'uint64_t' | 30 | static uint64_t page_unit; | | ^~~~~~~~ Fix by adding including stdint.h. --- diff --git a/sysdeps/unix/sysv/linux/mmap_internal.h b/sysdeps/unix/sysv/linux/mmap_internal.h index 5ca69761911..35e112cc776 100644 --- a/sysdeps/unix/sysv/linux/mmap_internal.h +++ b/sysdeps/unix/sysv/linux/mmap_internal.h @@ -19,6 +19,8 @@ #ifndef MMAP_INTERNAL_LINUX_H #define MMAP_INTERNAL_LINUX_H 1 +#include + /* This is the minimum mmap2 unit size accept by the kernel. An architecture with multiple minimum page sizes (such as m68k) might define it as -1 and thus it will queried at runtime. */