diff mbox series

tsystem.h: Add missing stdint.h include.

Message ID 20220620223508.70487-1-kacper.slominski72@gmail.com
State New
Headers show
Series tsystem.h: Add missing stdint.h include. | expand

Commit Message

Kacper Słomiński June 20, 2022, 10:35 p.m. UTC
Users of tsystem.h expect stdint.h to be included (for example,
gcc/gcov-io.h included by libgcc/libgcov.h), but it is not
included, and it is not provided by any other header included here
according to POSIX.

gcc/ChangeLog:

	* tsystem.h: Add missing stdint.h include.
---
Proposed fix for bug report 106036. Found when compiling gcc with
mlibc (https://github.com/managarm/mlibc) as the C library. Apologies
for any mistakes with the patch.

 gcc/tsystem.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/gcc/tsystem.h b/gcc/tsystem.h
index dfaf9e86a..5a8551cc2 100644
--- a/gcc/tsystem.h
+++ b/gcc/tsystem.h
@@ -41,6 +41,7 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #define _GNU_SOURCE 1
 
 /* GCC supplies these headers.  */
+#include <stdint.h>
 #include <stddef.h>
 #include <float.h>