mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
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.
This commit is contained in:
parent
04e8169f1d
commit
6446c725d4
@ -19,6 +19,8 @@
|
||||
#ifndef MMAP_INTERNAL_LINUX_H
|
||||
#define MMAP_INTERNAL_LINUX_H 1
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/* 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. */
|
||||
|
Loading…
Reference in New Issue
Block a user