[02/30] elf: Include <stddef.h> (for size_t), <sys/stat.h> in <ldconfig.h>

Message ID d3b4c2e458a9ee0ee1c131d810206502667d7cbb.1592836143.git.fweimer@redhat.com
State New
Headers show
Series
  • RFC: elf: glibc-hwcaps support
Related show

Commit Message

Adhemerval Zanella via Libc-alpha June 22, 2020, 3:13 p.m.
---
 sysdeps/generic/ldconfig.h | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.25.4

Comments

Adhemerval Zanella via Libc-alpha June 25, 2020, 1:16 p.m. | #1
On 6/22/20 11:13 AM, Florian Weimer via Libc-alpha wrote:
> ---

>  sysdeps/generic/ldconfig.h | 2 ++

>  1 file changed, 2 insertions(+)

> 

> diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h

> index a8a2be7856..b64aab0064 100644

> --- a/sysdeps/generic/ldconfig.h

> +++ b/sysdeps/generic/ldconfig.h

> @@ -19,7 +19,9 @@

>  #ifndef _LDCONFIG_H

>  #define _LDCONFIG_H

>  

> +#include <stddef.h>

>  #include <stdint.h>

> +#include <sys/stat.h>

>  

>  #define FLAG_ANY			-1

>  #define FLAG_TYPE_MASK			0x00ff

> 


OK for master.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>


-- 
Cheers,
Carlos.

Patch

diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h
index a8a2be7856..b64aab0064 100644
--- a/sysdeps/generic/ldconfig.h
+++ b/sysdeps/generic/ldconfig.h
@@ -19,7 +19,9 @@ 
 #ifndef _LDCONFIG_H
 #define _LDCONFIG_H
 
+#include <stddef.h>
 #include <stdint.h>
+#include <sys/stat.h>
 
 #define FLAG_ANY			-1
 #define FLAG_TYPE_MASK			0x00ff