elf: Add #include <errno.h> for use of E* constants.
authorCarlos O'Donell <carlos@redhat.com>
Thu, 2 Jun 2022 15:00:54 +0000 (11:00 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 2 Jun 2022 19:20:36 +0000 (15:20 -0400)
In __strerror_r we use errno constants and must include errno.h.

Tested on x86_64 and i686 without regression.

elf/dl-minimal.c

index a6befe12b58f032fe33cf2b746034df9090fbd80..379db134a48721f7da09e94cfb1f605298720189 100644 (file)
@@ -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