diff --git a/libc/include/alloca.h b/libc/include/alloca.h index 0c50fc310..0508d3158 100644 --- a/libc/include/alloca.h +++ b/libc/include/alloca.h @@ -25,9 +25,12 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _ALLOCA_H #define _ALLOCA_H +#include + #define alloca(size) __builtin_alloca(size) #endif /* _ALLOCA_H */ diff --git a/libc/include/android/api-level.h b/libc/include/android/api-level.h index b230cefe4..001877b5d 100644 --- a/libc/include/android/api-level.h +++ b/libc/include/android/api-level.h @@ -29,6 +29,8 @@ #ifndef ANDROID_API_LEVEL_H #define ANDROID_API_LEVEL_H +#include + /* * Magic version number for a current development build, which has * not yet turned into an official release. diff --git a/libc/include/ar.h b/libc/include/ar.h index 835290b3a..413f76720 100644 --- a/libc/include/ar.h +++ b/libc/include/ar.h @@ -43,6 +43,8 @@ #ifndef _AR_H_ #define _AR_H_ +#include + /* Pre-4BSD archives had these magic numbers in them. */ #define OARMAG1 0177555 #define OARMAG2 0177545 diff --git a/libc/include/arpa/inet.h b/libc/include/arpa/inet.h index e4f94ef4a..d13713006 100644 --- a/libc/include/arpa/inet.h +++ b/libc/include/arpa/inet.h @@ -29,9 +29,10 @@ #ifndef _ARPA_INET_H_ #define _ARPA_INET_H_ -#include -#include #include +#include +#include +#include __BEGIN_DECLS diff --git a/libc/include/arpa/nameser_compat.h b/libc/include/arpa/nameser_compat.h index 539864e44..686887649 100644 --- a/libc/include/arpa/nameser_compat.h +++ b/libc/include/arpa/nameser_compat.h @@ -40,9 +40,10 @@ #ifndef _ARPA_NAMESER_COMPAT_ #define _ARPA_NAMESER_COMPAT_ -#define __BIND 19950621 /* (DEAD) interface version stamp. */ - #include +#include + +#define __BIND 19950621 /* (DEAD) interface version stamp. */ /* * Structure for query header. The order of the fields is machine- and diff --git a/libc/include/arpa/telnet.h b/libc/include/arpa/telnet.h index b8212f8a4..594dc7a70 100644 --- a/libc/include/arpa/telnet.h +++ b/libc/include/arpa/telnet.h @@ -32,6 +32,8 @@ #ifndef _ARPA_TELNET_H #define _ARPA_TELNET_H 1 +#include + /* * Definitions for the TELNET protocol. */ diff --git a/libc/include/bits/posix_limits.h b/libc/include/bits/posix_limits.h index 31016a807..0f173811b 100644 --- a/libc/include/bits/posix_limits.h +++ b/libc/include/bits/posix_limits.h @@ -29,6 +29,7 @@ #ifndef _BITS_POSIX_LIMITS_H_ #define _BITS_POSIX_LIMITS_H_ +#include /* Any constant values here other than -1 or 200809L are explicitly specified by POSIX.1-2008. */ /* Keep it sorted. */ diff --git a/libc/include/bits/pthread_types.h b/libc/include/bits/pthread_types.h index 6ac1c68f3..194a49b5c 100644 --- a/libc/include/bits/pthread_types.h +++ b/libc/include/bits/pthread_types.h @@ -29,6 +29,7 @@ #ifndef _BITS_PTHREAD_TYPES_H_ #define _BITS_PTHREAD_TYPES_H_ +#include #include typedef long pthread_t; diff --git a/libc/include/bits/sa_family_t.h b/libc/include/bits/sa_family_t.h index 51ea51f15..98ca27f18 100644 --- a/libc/include/bits/sa_family_t.h +++ b/libc/include/bits/sa_family_t.h @@ -29,6 +29,8 @@ #ifndef _BITS_SA_FAMILY_T_H_ #define _BITS_SA_FAMILY_T_H_ +#include + typedef unsigned short sa_family_t; #endif diff --git a/libc/include/bits/timespec.h b/libc/include/bits/timespec.h index 046d89809..df7a7ce4d 100644 --- a/libc/include/bits/timespec.h +++ b/libc/include/bits/timespec.h @@ -29,6 +29,7 @@ #ifndef _BITS_TIMESPEC_H_ #define _BITS_TIMESPEC_H_ +#include #include /* diff --git a/libc/include/bits/wchar_limits.h b/libc/include/bits/wchar_limits.h index f779c1aaa..ffad6041f 100644 --- a/libc/include/bits/wchar_limits.h +++ b/libc/include/bits/wchar_limits.h @@ -29,6 +29,8 @@ #ifndef _BITS_WCHAR_LIMITS_H_ #define _BITS_WCHAR_LIMITS_H_ +#include + /* Both GCC and clang define __WCHAR_MAX__. */ #define WCHAR_MAX __WCHAR_MAX__ diff --git a/libc/include/byteswap.h b/libc/include/byteswap.h index 628fb7f3e..0838e6c54 100644 --- a/libc/include/byteswap.h +++ b/libc/include/byteswap.h @@ -25,9 +25,11 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _BYTESWAP_H_ #define _BYTESWAP_H_ +#include #include #define bswap_16(x) __swap16(x) diff --git a/libc/include/elf.h b/libc/include/elf.h index eaad1d35f..1a9933757 100644 --- a/libc/include/elf.h +++ b/libc/include/elf.h @@ -25,14 +25,15 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _ELF_H #define _ELF_H #include #include #include - #include +#include #define ELF32_R_INFO(sym, type) ((((Elf32_Word)sym) << 8) | ((type) & 0xff)) #define ELF64_R_INFO(sym, type) ((((Elf64_Xword)sym) << 32) | ((type) & 0xffffffff)) diff --git a/libc/include/endian.h b/libc/include/endian.h index 475b48cf6..65e29305c 100644 --- a/libc/include/endian.h +++ b/libc/include/endian.h @@ -1,33 +1 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ -#ifndef _ENDIAN_H_ -#define _ENDIAN_H_ - #include - -#endif /* _ENDIAN_H_ */ diff --git a/libc/include/fts.h b/libc/include/fts.h index cde0349ba..b46c19c09 100644 --- a/libc/include/fts.h +++ b/libc/include/fts.h @@ -35,6 +35,7 @@ #ifndef _FTS_H_ #define _FTS_H_ +#include #include typedef struct { diff --git a/libc/include/ftw.h b/libc/include/ftw.h index ac901cc3e..cb8ae7d47 100644 --- a/libc/include/ftw.h +++ b/libc/include/ftw.h @@ -25,8 +25,9 @@ #ifndef _FTW_H #define _FTW_H -#include +#include #include +#include /* * Valid flags for the 3rd argument to the function that is passed as the diff --git a/libc/include/link.h b/libc/include/link.h index 2d189f6e5..f40e7e400 100644 --- a/libc/include/link.h +++ b/libc/include/link.h @@ -28,8 +28,9 @@ #ifndef _LINK_H_ #define _LINK_H_ -#include #include +#include +#include __BEGIN_DECLS diff --git a/libc/include/net/route.h b/libc/include/net/route.h index 326fbe7c2..9c53875c6 100644 --- a/libc/include/net/route.h +++ b/libc/include/net/route.h @@ -29,6 +29,7 @@ #ifndef _NET_ROUTE_H_ #define _NET_ROUTE_H_ +#include #include #include #include diff --git a/libc/include/netinet/icmp6.h b/libc/include/netinet/icmp6.h index e3e6e9aa7..eca7b4598 100644 --- a/libc/include/netinet/icmp6.h +++ b/libc/include/netinet/icmp6.h @@ -66,6 +66,7 @@ #define _NETINET_ICMP6_H_ #include /* android-added: glibc source compatibility. */ +#include #define ICMPV6_PLD_MAXLEN 1232 /* IPV6_MMTU - sizeof(struct ip6_hdr) - sizeof(struct icmp6_hdr) */ diff --git a/libc/include/netinet/in_systm.h b/libc/include/netinet/in_systm.h index 188268e8e..8da19a5d8 100644 --- a/libc/include/netinet/in_systm.h +++ b/libc/include/netinet/in_systm.h @@ -34,6 +34,7 @@ #ifndef _NETINET_IN_SYSTM_H_ #define _NETINET_IN_SYSTM_H_ +#include #include /* diff --git a/libc/include/netinet/ip6.h b/libc/include/netinet/ip6.h index 52fcfae94..639637e7f 100644 --- a/libc/include/netinet/ip6.h +++ b/libc/include/netinet/ip6.h @@ -64,6 +64,7 @@ #ifndef _NETINET_IP6_H_ #define _NETINET_IP6_H_ +#include #include #include diff --git a/libc/include/netinet/udp.h b/libc/include/netinet/udp.h index d4eb36806..ef517d6c1 100644 --- a/libc/include/netinet/udp.h +++ b/libc/include/netinet/udp.h @@ -29,6 +29,7 @@ #ifndef _NETINET_UDP_H #define _NETINET_UDP_H +#include #include #include diff --git a/libc/include/paths.h b/libc/include/paths.h index ffb1737cc..b76d0454a 100644 --- a/libc/include/paths.h +++ b/libc/include/paths.h @@ -32,6 +32,8 @@ #ifndef _PATHS_H_ #define _PATHS_H_ +#include + #define _PATH_BSHELL "/system/bin/sh" #define _PATH_CONSOLE "/dev/console" #define _PATH_DEFPATH "/sbin:/system/sbin:/system/bin:/system/xbin:/vendor/bin:/vendor/xbin" diff --git a/libc/include/stdint.h b/libc/include/stdint.h index 0ad27f1e1..1cedca1a3 100644 --- a/libc/include/stdint.h +++ b/libc/include/stdint.h @@ -31,6 +31,7 @@ #include #include +#include typedef signed char __int8_t; typedef unsigned char __uint8_t; diff --git a/libc/include/sys/_system_properties.h b/libc/include/sys/_system_properties.h index 3b1f7d0a8..60789d41b 100644 --- a/libc/include/sys/_system_properties.h +++ b/libc/include/sys/_system_properties.h @@ -29,6 +29,8 @@ #ifndef _INCLUDE_SYS__SYSTEM_PROPERTIES_H #define _INCLUDE_SYS__SYSTEM_PROPERTIES_H +#include + #ifndef _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ #error you should #include instead #else diff --git a/libc/include/sys/cachectl.h b/libc/include/sys/cachectl.h index 08302932d..5b20c1918 100644 --- a/libc/include/sys/cachectl.h +++ b/libc/include/sys/cachectl.h @@ -25,10 +25,13 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_CACHECTL_H #define _SYS_CACHECTL_H 1 +#include #ifdef __mips__ #include #endif + #endif /* sys/cachectl.h */ diff --git a/libc/include/sys/msg.h b/libc/include/sys/msg.h index 1a6d30d2b..73965f289 100644 --- a/libc/include/sys/msg.h +++ b/libc/include/sys/msg.h @@ -29,6 +29,7 @@ #ifndef _SYS_MSG_H_ #define _SYS_MSG_H_ +#include #include #endif /* _SYS_MSG_H_ */ diff --git a/libc/include/sys/param.h b/libc/include/sys/param.h index 5d2248f76..d3686e096 100644 --- a/libc/include/sys/param.h +++ b/libc/include/sys/param.h @@ -25,11 +25,13 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ + #ifndef _SYS_PARAM_H_ #define _SYS_PARAM_H_ #include #include +#include #define DEV_BSIZE 512 diff --git a/libc/include/sys/queue.h b/libc/include/sys/queue.h index b0e6b38c1..089083850 100644 --- a/libc/include/sys/queue.h +++ b/libc/include/sys/queue.h @@ -32,6 +32,8 @@ #ifndef _SYS_QUEUE_H_ #define _SYS_QUEUE_H_ +#include + /* * This file defines five types of data structures: singly-linked lists, * lists, simple queues, tail queues, and circular queues. diff --git a/libc/include/sys/reg.h b/libc/include/sys/reg.h index b3d2aac04..1066b6dc5 100644 --- a/libc/include/sys/reg.h +++ b/libc/include/sys/reg.h @@ -29,6 +29,8 @@ #ifndef _SYS_REG_H_ #define _SYS_REG_H_ +#include + #if defined(__i386__) #define EBX 0 diff --git a/libc/include/sys/sem.h b/libc/include/sys/sem.h index a1ecd1f12..753fc3784 100644 --- a/libc/include/sys/sem.h +++ b/libc/include/sys/sem.h @@ -29,6 +29,7 @@ #ifndef _SYS_SEM_H_ #define _SYS_SEM_H_ +#include #include #endif /* _SYS_SEM_H_ */ diff --git a/libc/include/sys/syscall.h b/libc/include/sys/syscall.h index 87cddc94f..a49323d15 100644 --- a/libc/include/sys/syscall.h +++ b/libc/include/sys/syscall.h @@ -31,6 +31,7 @@ #include /* Linux kernel __NR_* names. */ #include /* glibc-compatible SYS_* aliases. */ +#include /* The syscall function itself is declared in , not here. */ diff --git a/libc/include/sys/sysconf.h b/libc/include/sys/sysconf.h index c9895f2d3..eb30faf8f 100644 --- a/libc/include/sys/sysconf.h +++ b/libc/include/sys/sysconf.h @@ -1,33 +1,6 @@ /* - * Copyright (C) 2008 The Android Open Source Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * This file used to contain the declarations of sysconf and its associated constants. + * No standard mentions a , but there are enough users in vendor (and potential ones + * in the NDK) to warrant not breaking source compatibility. */ - -// This file used to contain the declarations of sysconf and its associated constants. -// No standard mentions a , but there are enough users in vendor (and potential ones -// in the NDK) to warrant not breaking source compatibility. - #include diff --git a/libc/include/sys/sysmacros.h b/libc/include/sys/sysmacros.h index 54e43dd15..592cc5e0b 100644 --- a/libc/include/sys/sysmacros.h +++ b/libc/include/sys/sysmacros.h @@ -29,6 +29,8 @@ #ifndef _SYS_SYSMACROS_H_ #define _SYS_SYSMACROS_H_ +#include + #define makedev(__major, __minor) \ ( \ (((__major) & 0xfffff000ULL) << 32) | (((__major) & 0xfffULL) << 8) | \ diff --git a/libc/include/sys/timerfd.h b/libc/include/sys/timerfd.h index 8311f0886..009023365 100644 --- a/libc/include/sys/timerfd.h +++ b/libc/include/sys/timerfd.h @@ -31,6 +31,7 @@ #include /* For O_CLOEXEC and O_NONBLOCK. */ #include +#include #include __BEGIN_DECLS diff --git a/libc/include/sys/ttydefaults.h b/libc/include/sys/ttydefaults.h index b62aab15b..62af84b10 100644 --- a/libc/include/sys/ttydefaults.h +++ b/libc/include/sys/ttydefaults.h @@ -42,6 +42,8 @@ #ifndef _SYS_TTYDEFAULTS_H_ #define _SYS_TTYDEFAULTS_H_ +#include + /* * Defaults on "first" open. */ diff --git a/libc/include/sys/ucontext.h b/libc/include/sys/ucontext.h index f252a37e8..fdb3015f7 100644 --- a/libc/include/sys/ucontext.h +++ b/libc/include/sys/ucontext.h @@ -30,6 +30,7 @@ #define _SYS_UCONTEXT_H_ #include +#include #include __BEGIN_DECLS diff --git a/libc/include/sys/un.h b/libc/include/sys/un.h index 421b90051..3e1c429d7 100644 --- a/libc/include/sys/un.h +++ b/libc/include/sys/un.h @@ -31,5 +31,6 @@ #include #include +#include #endif diff --git a/libc/include/sys/xattr.h b/libc/include/sys/xattr.h index 7e437e961..37e352d3f 100644 --- a/libc/include/sys/xattr.h +++ b/libc/include/sys/xattr.h @@ -30,6 +30,7 @@ #define _SYS_XATTR_H_ #include +#include #include __BEGIN_DECLS diff --git a/libc/include/sysexits.h b/libc/include/sysexits.h index e24483687..97f5366ca 100644 --- a/libc/include/sysexits.h +++ b/libc/include/sysexits.h @@ -35,6 +35,8 @@ #ifndef _SYSEXITS_H_ #define _SYSEXITS_H_ +#include + /* * SYSEXITS.H -- Exit status codes for system programs. * diff --git a/libc/include/termio.h b/libc/include/termio.h index 99d3630b7..9e2695652 100644 --- a/libc/include/termio.h +++ b/libc/include/termio.h @@ -1,32 +1 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -/* All definitions related to termio are in Linux kernel headers - * that are already included by - */ #include diff --git a/libc/include/ucontext.h b/libc/include/ucontext.h index 5ea29820e..73c2166c8 100644 --- a/libc/include/ucontext.h +++ b/libc/include/ucontext.h @@ -1,34 +1 @@ -/* - * Copyright (C) 2014 The Android Open Source Project - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS - * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, - * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS - * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - */ - -#ifndef _UCONTEXT_H_ -#define _UCONTEXT_H_ - #include - -#endif /* _UCONTEXT_H_ */ diff --git a/libc/include/wctype.h b/libc/include/wctype.h index 41e0ec3af..96464b16c 100644 --- a/libc/include/wctype.h +++ b/libc/include/wctype.h @@ -29,9 +29,9 @@ #ifndef _WCTYPE_H_ #define _WCTYPE_H_ -#include - #include +#include +#include __BEGIN_DECLS diff --git a/libc/include/xlocale.h b/libc/include/xlocale.h index f7eb8f4c6..559d24d68 100644 --- a/libc/include/xlocale.h +++ b/libc/include/xlocale.h @@ -29,6 +29,8 @@ #ifndef _XLOCALE_H_ #define _XLOCALE_H_ +#include + /* If we just use void* here, GCC exposes that in error messages. */ struct __locale_t; typedef struct __locale_t* locale_t;