diff options
71 files changed, 83 insertions, 70 deletions
diff --git a/include/errno.h b/include/errno.h index 457114b27a..c361a785c2 100644 --- a/include/errno.h +++ b/include/errno.h @@ -22,8 +22,6 @@ extern int rtld_errno attribute_hidden; # elif IS_IN_LIB && !IS_IN (rtld) -# include <tls.h> - # undef errno # if IS_IN (libc) # define errno __libc_errno diff --git a/io/lchmod.c b/io/lchmod.c index 8b788034ee..3a0f714576 100644 --- a/io/lchmod.c +++ b/io/lchmod.c @@ -16,10 +16,8 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <errno.h> #include <fcntl.h> -#include <sys/types.h> -#include <unistd.h> +#include <sys/stat.h> /* Change the protections of FILE to MODE. */ int diff --git a/malloc/reallocarray.c b/malloc/reallocarray.c index aca689e2c5..20b0215220 100644 --- a/malloc/reallocarray.c +++ b/malloc/reallocarray.c @@ -17,6 +17,7 @@ not, see <https://www.gnu.org/licenses/>. */ #include <errno.h> +#include <stdlib.h> #include <malloc.h> void * diff --git a/misc/ustat.c b/misc/ustat.c index a1b057f640..ad75c5c1bf 100644 --- a/misc/ustat.c +++ b/misc/ustat.c @@ -23,6 +23,7 @@ # include <unistd.h> # include <errno.h> +# include <sys/types.h> struct ustat { diff --git a/nss/nss_fgetent_r.c b/nss/nss_fgetent_r.c index 8f7c5b5cc7..7fecde7e8f 100644 --- a/nss/nss_fgetent_r.c +++ b/nss/nss_fgetent_r.c @@ -18,6 +18,7 @@ #include <errno.h> #include <nss_files.h> +#include <stdbool.h> int __nss_fgetent_r (FILE *fp, void *result, char *buffer, size_t buffer_length, diff --git a/posix/execl.c b/posix/execl.c index 8d319a4528..61aef66126 100644 --- a/posix/execl.c +++ b/posix/execl.c @@ -19,6 +19,7 @@ #include <errno.h> #include <stdarg.h> #include <sys/param.h> +#include <stddef.h> /* Execute PATH with all arguments after PATH until a NULL pointer and environment from `environ'. */ diff --git a/posix/execle.c b/posix/execle.c index 7539ce6b8d..f6608ee112 100644 --- a/posix/execle.c +++ b/posix/execle.c @@ -19,6 +19,7 @@ #include <stdarg.h> #include <errno.h> #include <sys/param.h> +#include <stddef.h> /* Execute PATH with all arguments after PATH until a NULL pointer, and the argument after that for environment. */ diff --git a/posix/execlp.c b/posix/execlp.c index 9eaca5fd25..4761962176 100644 --- a/posix/execlp.c +++ b/posix/execlp.c @@ -19,6 +19,7 @@ #include <stdarg.h> #include <errno.h> #include <sys/param.h> +#include <stddef.h> /* Execute FILE, searching in the `PATH' environment variable if it contains no slashes, with all arguments after FILE until a diff --git a/posix/spawn_faction_addchdir.c b/posix/spawn_faction_addchdir.c index 6558628547..20a3ba92ab 100644 --- a/posix/spawn_faction_addchdir.c +++ b/posix/spawn_faction_addchdir.c @@ -19,7 +19,7 @@ #include <errno.h> #include <spawn.h> #include <string.h> - +#include <stdlib.h> #include "spawn_int.h" int diff --git a/pwd/putpwent.c b/pwd/putpwent.c index a6673acbf2..baf312a6fe 100644 --- a/pwd/putpwent.c +++ b/pwd/putpwent.c @@ -18,6 +18,7 @@ #include <errno.h> #include <stdio.h> #include <pwd.h> +#include <stdlib.h> #include <nss.h> #define _S(x) x ?: "" diff --git a/signal/sigempty.c b/signal/sigempty.c index 31b1145027..01848c82d5 100644 --- a/signal/sigempty.c +++ b/signal/sigempty.c @@ -18,6 +18,7 @@ #include <errno.h> #include <signal.h> #include <sigsetops.h> +#include <stddef.h> /* Clear all signals from SET. */ int diff --git a/signal/sigismem.c b/signal/sigismem.c index 728d58f7a3..c788ca83b1 100644 --- a/signal/sigismem.c +++ b/signal/sigismem.c @@ -17,6 +17,7 @@ #include <errno.h> #include <signal.h> +#include <stddef.h> #include <sigsetops.h> /* Return 1 if SIGNO is in SET, 0 if not. */ diff --git a/sysdeps/generic/internal-signals.h b/sysdeps/generic/internal-signals.h index 73a0c29d82..cd675e4fd4 100644 --- a/sysdeps/generic/internal-signals.h +++ b/sysdeps/generic/internal-signals.h @@ -22,6 +22,7 @@ #include <signal.h> #include <sigsetops.h> #include <stdbool.h> +#include <stddef.h> static inline bool __is_internal_signal (int sig) diff --git a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c index f77253e520..6ced407e26 100644 --- a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c +++ b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c @@ -20,9 +20,6 @@ #include <float.h> #include <math.h> -/* Need to set this when including gmp headers after system headers. */ -#define HAVE_ALLOCA 1 - #include "gmp.h" #include "gmp-impl.h" diff --git a/sysdeps/mach/hurd/mmap64.c b/sysdeps/mach/hurd/mmap64.c index 6d8566b5b1..23d7ca7f34 100644 --- a/sysdeps/mach/hurd/mmap64.c +++ b/ |
