Minor: include <stdint.h> for uintptr_t

Message ID 20231114222038.635789-2-ppluzhnikov@google.com
State Committed
Headers
Series Minor: include <stdint.h> for uintptr_t |

Commit Message

Paul Pluzhnikov Nov. 14, 2023, 10:20 p.m. UTC
  We have a clang-tidy complaining that uintptr_t is not provided by any
directly included header (it's only provided by a transitively included one).

	* libelf/elf_begin.c: Include <stdint.h>

Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>
---
 libelf/elf_begin.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Mark Wielaard Nov. 15, 2023, 12:05 p.m. UTC | #1
Hi Paul,

On Tue, 2023-11-14 at 22:20 +0000, Paul Pluzhnikov wrote:
> We have a clang-tidy complaining that uintptr_t is not provided by any
> directly included header (it's only provided by a transitively included one).
> 
> 	* libelf/elf_begin.c: Include <stdint.h>
> 

Makes sense. Pushed.

Thanks,

Mark
  

Patch

diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c
index dcaad8ee..8a49f351 100644
--- a/libelf/elf_begin.c
+++ b/libelf/elf_begin.c
@@ -38,6 +38,7 @@ 
 #include <fcntl.h>
 #include <stdbool.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <string.h>
 #include <sys/stat.h>