diff mbox series

[COMMITTED] elf: Add #include <errno.h> for use of E* constants.

Message ID 20220602192107.2285376-1-carlos@redhat.com
State New
Headers show
Series [COMMITTED] elf: Add #include <errno.h> for use of E* constants. | expand

Commit Message

Carlos O'Donell June 2, 2022, 7:21 p.m. UTC
In __strerror_r we use errno constants and must include errno.h.

Tested on x86_64 and i686 without regression.
---
 elf/dl-minimal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/elf/dl-minimal.c b/elf/dl-minimal.c
index a6befe12b5..379db134a4 100644
--- a/elf/dl-minimal.c
+++ b/elf/dl-minimal.c
@@ -25,7 +25,7 @@ 
 #include <dl-minimal-malloc.h>
 #include <stdio.h>
 #include <unistd.h>
-
+#include <errno.h>
 
 /* The rtld startup code calls __rtld_malloc_init_stubs after the
   first self-relocation to adjust the pointers to the minimal