This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH rsa/stdint] Cleanup: Add #include <stdint.h> for uint[32|64]_t usage


This is a cleanup patch in continuation of the thread "Re: [RFC 2.0]
Implementing hwcap2".

I've committd it to my rsa/stdint for easy testing.

On Thu, 2013-03-28 at 12:16 -0700, Roland McGrath wrote:
> > --- a/elf/dl-cache.c
> > +++ b/elf/dl-cache.c
> > @@ -22,7 +22,7 @@
> >  #include <sys/mman.h>
> >  #include <dl-cache.h>
> >  #include <dl-procinfo.h>
> > -
> > +#include <stdint.h>
> >  #include <_itoa.h>
> >  
> >  #ifndef _DL_PLATFORMS_COUNT
> 
> This and the other files where this was the only change seem wrong to me.
> 
> If the file itself uses the name uint64_t and doesn't already include some
> header that's specified to define it, then the file is already wrong and
> the clean-up should be a separate (earlier) change from this one.  If the
> file itself doesn't use that name, then it shouldn't need the header.

I've included a patch below which does this cleanup for uint64_t as well
as for uint32_t.

> ldsodefs.h should include <stdint.h> since it uses uint64_t in its
> declarations.  That being the case, nothing that just uses dl_hwcap
> (even if it uses the uint64_t name along with it) should need its own
> <stdint.h> include just because of that.

Ok, Per your suggestion, I've excluded files (example:
sysdeps/unix/sysv/linux/sparc/getshmlba.c and elf/dl-hwcaps.c) from
using #include <stdint.h> which do something like the following:

uint64_t hwcap = GLRO(dl_hwcap);

I've also excluded files where __uint64_t and __uint32_t is used, since
that is a different type, defined in bits/types.h.

But I've added #include <stdint.h> in the following cases where uint64_t
and uint32_t are:

* Used in a header file as a return value in a prototype (example:
sysdeps/unix/sysv/linux/powerpc/bits/ppc.h):

extern uint64_t __ppc_get_timebase_freq (void);

* Used in installed headers.

* Used in a header/source file when declaring a struct member.

* Usage in just a cast (uint64_t) in a header or in a source file.

* Usage as a variable declaration in a source or header file where
dl_hwcap or other redefinition mechanism isn't in use.

The one I'm not sure about is elf/dl-cache.c.  It uses both
GLRO(dl_hwcap) and uint64_t in a number of other places (not accompanied
by dl_hwcap).  I've included it for good measure.

I've tested this patch on powerpc32 and powerpc64, but it effects most
of the other architectures as well so it should probably have a build
test on those architectures.

Ryan S. Arnold
Linux Technology Center

2013-04-29  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>

	* crypt/sha512-block.c: Add missing #include <stdint.h> due to
	uint64_t usage.
	* crypt/sha512-crypt.c: Likewise.
	* crypt/sha512.c: Likewise.
	* debug/pcprofiledump.c: Likewise.
	* elf/cache.c: Likewise.
	* elf/dl-cache.c: Likewise.
	* elf/dl-support.c: Likewise.
	* elf/ldconfig.c: Likewise.
	* inet/test-inet6_opt.c: Likewise.
	* malloc/memusage.c: Likewise.
	* malloc/memusagestat.c: Likewise.
	* nptl_db/fetch-value.c: Likewise.
	* nscd/connections.c: Likewise.
	* nscd/nscd_helper.c: Likewise.
	* nss/makedb.c: Likewise.
	* ports/sysdeps/aarch64/bits/link.h: Likewise.
	* ports/sysdeps/alpha/bits/link.h: Likewise.
	* ports/sysdeps/ia64/bits/link.h: Likewise.
	* ports/sysdeps/mips/bits/atomic.h: Likewise.
	* ports/sysdeps/mips/bits/link.h: Likewise.
	* ports/sysdeps/tile/tilegx/memusage.h: Likewise.
	* ports/sysdeps/tile/tilegx/string-endian.h: Likewise.
	* ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h: Likewise.
	* posix/regcomp.c: Likewise.
	* resolv/res_mkquery.c: Likewise.
	* stdlib/cxa_atexit.c: Likewise.
	* stdlib/cxa_finalize.c: Likewise.
	* stdlib/gen-fpioconst.c: Likewise.
	* string/tst-endian.c: Likewise.
	* sunrpc/rpc/xdr.h: Likewise.
	* sunrpc/xdr_intXX_t.c: Likewise.
	* sysdeps/generic/ldconfig.h: Likewise.
	* sysdeps/generic/ldsodefs.h: Likewise.
	* sysdeps/generic/memusage.h: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
	* sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
	* sysdeps/powerpc/bits/link.h: Likewise.
	* sysdeps/powerpc/test-gettimebase.c: Likewise.
	* sysdeps/s390/bits/link.h: Likewise.
	* sysdeps/sparc/bits/link.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
	* sysdeps/unix/sysv/linux/preadv.c: Likewise.
	* sysdeps/unix/sysv/linux/pwritev.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/elfclass.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
	* sysdeps/x86/bits/link.h: Likewise.
	* sysdeps/x86_64/dl-tls.h: Likewise.
	* sysdeps/x86_64/dl-tlsdesc.h: Likewise.

	* bits/netdb.h: Add missing #include <stdint.h> due to uint32_t usage.
	* bits/elfclass.h: Likewise.
	* crypt/sha256.c: Likewise.
	* crypt/sha256-block.c: Likewise.
	* crypt/sha256-crypt.c: Likewise.
	* debug/backtrace-tst.c: Likewise.
	* elf/sprof.c: Likewise.
	* elf/dl-misc.c: Likewise.
	* elf/dl-profile.c: Likewise.
	* iconv/dummy-repertoire.c: Likewise.
	* iconv/skeleton.c: Likewise.
	* iconv/iconv_charmap.c: Likewise.
	* iconvdata/ibm1137.h: Likewise.
	* iconvdata/ibm1161.h: Likewise.
	* iconvdata/ibm922.h: Likewise.
	* iconvdata/ibm9066.h: Likewise.
	* iconvdata/ibm16804.h: Likewise.
	* iconvdata/ibm1163.h: Likewise.
	* iconvdata/ibm1141.h: Likewise.
	* iconvdata/ibm1144.h: Likewise.
	* iconvdata/ibm1145.h: Likewise.
	* iconvdata/ibm1156.h: Likewise.
	* iconvdata/ibm1140.h: Likewise.
	* iconvdata/ibm4517.h: Likewise.
	* iconvdata/ibm4971.h: Likewise.
	* iconvdata/cp775.h: Likewise.
	* iconvdata/cp737.h: Likewise.
	* iconvdata/jis0201.h: Likewise.
	* iconvdata/ibm1154.h: Likewise.
	* iconvdata/ibm1124.h: Likewise.
	* iconvdata/isiri-3342.h: Likewise.
	* iconvdata/ibm1143.h: Likewise.
	* iconvdata/ibm1149.h: Likewise.
	* iconvdata/ibm1122.h: Likewise.
	* iconvdata/ibm5347.h: Likewise.
	* iconvdata/ibm856.h: Likewise.
	* iconvdata/ibm1129.h: Likewise.
	* iconvdata/ibm1147.h: Likewise.
	* iconvdata/ibm1008.h: Likewise.
	* iconvdata/ibm1112.h: Likewise.
	* iconvdata/ibm1130.h: Likewise.
	* iconvdata/ibm1097.h: Likewise.
	* iconvdata/ibm1162.h: Likewise.
	* iconvdata/8bit-generic.c: Likewise.
	* iconvdata/ibm1153.h: Likewise.
	* iconvdata/ibm902.h: Likewise.
	* iconvdata/ibm1160.h: Likewise.
	* iconvdata/ibm1399.h: Likewise.
	* iconvdata/ibm4909.h: Likewise.
	* iconvdata/ibm1046.h: Likewise.
	* iconvdata/ibm1158.h: Likewise.
	* iconvdata/ibm9448.h: Likewise.
	* iconvdata/ibm12712.h: Likewise.
	* iconvdata/ibm1146.h: Likewise.
	* iconvdata/ibm4899.h: Likewise.
	* iconvdata/ibm1133.h: Likewise.
	* iconvdata/ibm1390.h: Likewise.
	* iconvdata/ibm901.h: Likewise.
	* iconvdata/ibm1148.h: Likewise.
	* iconvdata/ibm1155.h: Likewise.
	* iconvdata/ibm1166.h: Likewise.
	* iconvdata/ibm1025.h: Likewise.
	* iconvdata/ibm1164.h: Likewise.
	* iconvdata/ibm1142.h: Likewise.
	* iconvdata/ibm9030.h: Likewise.
	* iconvdata/ibm1167.h: Likewise.
	* iconvdata/ibm921.h: Likewise.
	* iconvdata/ibm1157.h: Likewise.
	* iconvdata/ibm1123.h: Likewise.
	* iconvdata/ibm1132.h: Likewise.
	* iconvdata/ibm803.h: Likewise.
	* include/rpc/xdr.h: Likewise.
	* include/netdb.h: Likewise.
	* include/link.h: Likewise.
	* inet/getnameinfo.c: Likewise.
	* inet/getsourcefilter.c: Likewise.
	* inet/tst-network.c: Likewise.
	* inet/getipv4sourcefilter.c: Likewise.
	* inet/netinet/icmp6.h: Likewise.
	* inet/netinet/ip6.h: Likewise.
	* inet/setipv4sourcefilter.c: Likewise.
	* inet/setsourcefilter.c: Likewise.
	* inet/htonl.c: Likewise.
	* inet/check_native.c: Likewise.
	* inet/check_pf.c: Likewise.
	* libidn/stringprep.c: Likewise.
	* libidn/idna.c: Likewise.
	* libidn/nfkc.c: Likewise.
	* locale/C-collate.c: Likewise.
	* locale/programs/ld-numeric.c: Likewise.
	* locale/programs/simple-hash.h: Likewise.
	* locale/programs/locfile.h: Likewise.
	* locale/programs/repertoire.c: Likewise.
	* locale/programs/ld-time.c: Likewise.
	* locale/programs/simple-hash.c: Likewise.
	* locale/programs/ld-identification.c: Likewise.
	* locale/programs/ld-telephone.c: Likewise.
	* locale/programs/linereader.c: Likewise.
	* locale/programs/ld-name.c: Likewise.
	* locale/programs/ld-monetary.c: Likewise.
	* locale/programs/ld-messages.c: Likewise.
	* locale/programs/ld-ctype.c: Likewise.
	* locale/programs/ld-collate.c: Likewise.
	* locale/programs/locale.c: Likewise.
	* locale/programs/locarchive.c: Likewise.
	* locale/programs/ld-paper.c: Likewise.
	* locale/programs/3level.h: Likewise.
	* locale/programs/charmap.h: Likewise.
	* locale/programs/ld-address.c: Likewise.
	* locale/programs/ld-measurement.c: Likewise.
	* locale/programs/charmap.c: Likewise.
	* locale/loadarchive.c: Likewise.
	* locale/C-time.c: Likewise.
	* locale/C-translit.h: Likewise.
	* locale/C-ctype.c: Likewise.
	* manual/socket.texi: Likewise.
	* nis/nis_hash.c: Likewise.
	* nis/nis_print.c: Likewise.
	* nis/rpcsvc/nis.h: Likewise.
	* nis/rpcsvc/nislib.h: Likewise.
	* nis/nis_xdr.c: Likewise.
	* nis/nis_defaults.c: Likewise.
	* nptl/pthread_create.c: Likewise.
	* nptl/sysdeps/pthread/createthread.c: Likewise.
	* nptl_db/td_ta_clear_event.c: Likewise.
	* nptl_db/td_thr_clear_event.c: Likewise.
	* nptl_db/td_thr_set_event.c: Likewise.
	* nptl_db/td_ta_tsd_iter.c: Likewise.
	* nptl_db/td_thr_tsd.c: Likewise.
	* nptl_db/td_ta_set_event.c: Likewise.
	* nptl_db/db_info.c: Likewise.
	* nptl_db/td_thr_get_info.c: Likewise.
	* nscd/servicescache.c: Likewise.
	* nscd/nscd_getserv_r.c: Likewise.
	* nscd/nscd_gethst_r.c: Likewise.
	* nscd/hstcache.c: Likewise.
	* nss/nss_files/files-network.c: Likewise.
	* nss/nss_files/files-parse.c: Likewise.
	* nss/nss_db/db-XXX.c: Likewise.
	* nss/nss_db/db-initgroups.c: Likewise.
	* nss/nss_db/db-netgrp.c: Likewise.
	* ports/sysdeps/microblaze/bits/link.h: Likewise.
	* ports/sysdeps/am33/atomicity.h: Likewise.
	* ports/sysdeps/hppa/bits/link.h: Likewise.
	* ports/sysdeps/arm/bits/link.h: Likewise.
	* ports/sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h: Likewise.
	* ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h: Likewise.
	* ports/sysdeps/unix/sysv/linux/arm/bits/atomic.h: Likewise.
	* ports/sysdeps/m68k/bits/link.h: Likewise.
	* posix/fnmatch_loop.c: Likewise.
	* posix/regexec.c: Likewise.
	* posix/tst-rfc3484-3.c: Likewise.
	* posix/tst-rfc3484-2.c: Likewise.
	* posix/tst-rfc3484.c: Likewise.
	* posix/bug-regex5.c: Likewise.
	* resolv/res_init.c: Likewise.
	* resolv/nss_dns/dns-network.c: Likewise.
	* resolv/nss_dns/dns-canon.c: Likewise.
	* resolv/tst-aton.c: Likewise.
	* scripts/gen-as-const.awk: Likewise.
	* stdlib/strtol_l.c: Likewise.
	* sunrpc/rpc/types.h: Likewise.
	* sunrpc/rpc/auth_des.h: Likewise.
	* sunrpc/Versions: Likewise.
	* sunrpc/rtime.c: Likewise.
	* sunrpc/xdr.c: Likewise.
	* sunrpc/clnt_udp.c: Likewise.
	* sunrpc/auth_des.c: Likewise.
	* sunrpc/xdr_rec.c: Likewise.
	* sunrpc/svcauth_des.c: Likewise.
	* sysdeps/posix/getaddrinfo.c: Likewise.
	* sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
	* sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
	* sysdeps/powerpc/fpu/e_hypot.c: Likewise.
	* sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
	* sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
	* sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
	* sysdeps/unix/sysv/linux/check_pf.c: Likewise.
	* time/alt_digit.c: Likewise.
	* time/era.c: Likewise.
	* wcsmbs/tst-c16c32-1.c: Likewise.



diff --git a/bits/elfclass.h b/bits/elfclass.h
index 180227d..f6ed899 100644
--- a/bits/elfclass.h
+++ b/bits/elfclass.h
@@ -7,6 +7,7 @@
 #endif
 
 #include <bits/wordsize.h>
+#include <stdint.h>
 
 #define __ELF_NATIVE_CLASS __WORDSIZE
 
diff --git a/bits/netdb.h b/bits/netdb.h
index fd0e8d1..a017437 100644
--- a/bits/netdb.h
+++ b/bits/netdb.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Description of data base entry for a single network.  NOTE: here a
    poor assumption is made.  The network number is expected to fit
diff --git a/crypt/sha256-block.c b/crypt/sha256-block.c
index a163e25..8a77096 100644
--- a/crypt/sha256-block.c
+++ b/crypt/sha256-block.c
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
 /* Process LEN bytes of BUFFER, accumulating context into CTX.
    It is assumed that LEN % 64 == 0.  */
 void
diff --git a/crypt/sha256-crypt.c b/crypt/sha256-crypt.c
index 334f572..c114a53 100644
--- a/crypt/sha256-crypt.c
+++ b/crypt/sha256-crypt.c
@@ -22,6 +22,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/param.h>
 
 #include "sha256.h"
diff --git a/crypt/sha256.c b/crypt/sha256.c
index 9aa222b..8fb7d47 100644
--- a/crypt/sha256.c
+++ b/crypt/sha256.c
@@ -26,6 +26,7 @@
 #include <endian.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 #include "sha256.h"
diff --git a/crypt/sha512-block.c b/crypt/sha512-block.c
index e7c5cfd..c542db1 100644
--- a/crypt/sha512-block.c
+++ b/crypt/sha512-block.c
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
 /* Process LEN bytes of BUFFER, accumulating context into CTX.
    It is assumed that LEN % 128 == 0.  */
 void
diff --git a/crypt/sha512-crypt.c b/crypt/sha512-crypt.c
index 6541a9d..e09ae41 100644
--- a/crypt/sha512-crypt.c
+++ b/crypt/sha512-crypt.c
@@ -22,6 +22,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/param.h>
 
 #include "sha512.h"
diff --git a/crypt/sha512.c b/crypt/sha512.c
index db17ff4..be20bcc 100644
--- a/crypt/sha512.c
+++ b/crypt/sha512.c
@@ -26,6 +26,7 @@
 #include <endian.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 #include "sha512.h"
diff --git a/debug/backtrace-tst.c b/debug/backtrace-tst.c
index ce80685..cc46c33 100644
--- a/debug/backtrace-tst.c
+++ b/debug/backtrace-tst.c
@@ -2,6 +2,7 @@
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdint.h>
 
 
 static int
diff --git a/debug/pcprofiledump.c b/debug/pcprofiledump.c
index 43ae347..ce6096d 100644
--- a/debug/pcprofiledump.c
+++ b/debug/pcprofiledump.c
@@ -33,6 +33,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 
 #include "../version.h"
 
diff --git a/elf/cache.c b/elf/cache.c
index 699550b..9bf261c 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
diff --git a/elf/dl-cache.c b/elf/dl-cache.c
index 030fdca..0b68d18 100644
--- a/elf/dl-cache.c
+++ b/elf/dl-cache.c
@@ -22,7 +22,7 @@
 #include <sys/mman.h>
 #include <dl-cache.h>
 #include <dl-procinfo.h>
-
+#include <stdint.h>
 #include <_itoa.h>
 
 #ifndef _DL_PLATFORMS_COUNT
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index a8e9a3f..163649c 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -25,6 +25,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
diff --git a/elf/dl-profile.c b/elf/dl-profile.c
index c3faeba..9034be2 100644
--- a/elf/dl-profile.c
+++ b/elf/dl-profile.c
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <ldsodefs.h>
 #include <sys/gmon.h>
 #include <sys/gmon_out.h>
diff --git a/elf/dl-support.c b/elf/dl-support.c
index 7a55b82..b3ab956 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/param.h>
+#include <stdint.h>
 #include <ldsodefs.h>
 #include <dl-machine.h>
 #include <bits/libc-lock.h>
diff --git a/elf/ldconfig.c b/elf/ldconfig.c
index 57c6a6f..7789839 100644
--- a/elf/ldconfig.c
+++ b/elf/ldconfig.c
@@ -31,6 +31,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
diff --git a/elf/sprof.c b/elf/sprof.c
index 54dfebd..60e880c 100644
--- a/elf/sprof.c
+++ b/elf/sprof.c
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <ldsodefs.h>
 #include <sys/gmon.h>
 #include <sys/gmon_out.h>
diff --git a/iconv/dummy-repertoire.c b/iconv/dummy-repertoire.c
index b32a754..a7ca1f0 100644
--- a/iconv/dummy-repertoire.c
+++ b/iconv/dummy-repertoire.c
@@ -15,6 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 /* For iconv we don't have to handle repertoire maps.  Provide dummy
    definitions to allow the use of linereader.c unchanged.  */
 #include <repertoire.h>
diff --git a/iconv/iconv_charmap.c b/iconv/iconv_charmap.c
index b1a0610..66933f1 100644
--- a/iconv/iconv_charmap.c
+++ b/iconv/iconv_charmap.c
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
index c8b1445..45beb06 100644
--- a/iconv/skeleton.c
+++ b/iconv/skeleton.c
@@ -144,6 +144,7 @@
 #endif
 
 #include <sysdep.h>
+#include <stdint.h>
 
 #ifndef DL_CALL_FCT
 # define DL_CALL_FCT(fct, args) fct args
diff --git a/iconvdata/8bit-generic.c b/iconvdata/8bit-generic.c
index 79a3989..c789dc6 100644
--- a/iconvdata/8bit-generic.c
+++ b/iconvdata/8bit-generic.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <dlfcn.h>
+#include <stdint.h>
 
 #define FROM_LOOP		from_generic
 #define TO_LOOP			to_generic
diff --git a/iconvdata/cp737.h b/iconvdata/cp737.h
index faf3f10..1796626 100644
--- a/iconvdata/cp737.h
+++ b/iconvdata/cp737.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 /* Table to map to UCS4.  It can be generated using
    (I know, this is a useless use of cat, but the linebreak requires it):
 
diff --git a/iconvdata/cp775.h b/iconvdata/cp775.h
index 13fe5de..c7e6011 100644
--- a/iconvdata/cp775.h
+++ b/iconvdata/cp775.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 /* Table to map to UCS4.  It can be generated using
    (I know, this is a useless use of cat, but the linebreak requires it):
 
diff --git a/iconvdata/ibm1008.h b/iconvdata/ibm1008.h
index 800816f..57232a5 100644
--- a/iconvdata/ibm1008.h
+++ b/iconvdata/ibm1008.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1025.h b/iconvdata/ibm1025.h
index da2cf1c..fc58a37 100644
--- a/iconvdata/ibm1025.h
+++ b/iconvdata/ibm1025.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1046.h b/iconvdata/ibm1046.h
index 7c103b4..80d1e59 100644
--- a/iconvdata/ibm1046.h
+++ b/iconvdata/ibm1046.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1097.h b/iconvdata/ibm1097.h
index 34a3088..3fe8046 100644
--- a/iconvdata/ibm1097.h
+++ b/iconvdata/ibm1097.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1112.h b/iconvdata/ibm1112.h
index a584863..f5eca92 100644
--- a/iconvdata/ibm1112.h
+++ b/iconvdata/ibm1112.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1122.h b/iconvdata/ibm1122.h
index ccb1427..30d7a2a 100644
--- a/iconvdata/ibm1122.h
+++ b/iconvdata/ibm1122.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1123.h b/iconvdata/ibm1123.h
index 6a30f77..28e4585 100644
--- a/iconvdata/ibm1123.h
+++ b/iconvdata/ibm1123.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1124.h b/iconvdata/ibm1124.h
index 4f75b33..2393fd7 100644
--- a/iconvdata/ibm1124.h
+++ b/iconvdata/ibm1124.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1129.h b/iconvdata/ibm1129.h
index c1cdcd6..94011fb 100644
--- a/iconvdata/ibm1129.h
+++ b/iconvdata/ibm1129.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1130.h b/iconvdata/ibm1130.h
index b7c9d64..101c9bc 100644
--- a/iconvdata/ibm1130.h
+++ b/iconvdata/ibm1130.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1132.h b/iconvdata/ibm1132.h
index e98faa2..7e38be1 100644
--- a/iconvdata/ibm1132.h
+++ b/iconvdata/ibm1132.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1133.h b/iconvdata/ibm1133.h
index 46fecf1..35e8dd2 100644
--- a/iconvdata/ibm1133.h
+++ b/iconvdata/ibm1133.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1137.h b/iconvdata/ibm1137.h
index 8b80092..22051fa 100644
--- a/iconvdata/ibm1137.h
+++ b/iconvdata/ibm1137.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1140.h b/iconvdata/ibm1140.h
index b4ede76..7332982 100644
--- a/iconvdata/ibm1140.h
+++ b/iconvdata/ibm1140.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1141.h b/iconvdata/ibm1141.h
index ca3bfeb..ec2ec6b 100644
--- a/iconvdata/ibm1141.h
+++ b/iconvdata/ibm1141.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1142.h b/iconvdata/ibm1142.h
index f923679..e2a54af 100644
--- a/iconvdata/ibm1142.h
+++ b/iconvdata/ibm1142.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1143.h b/iconvdata/ibm1143.h
index faec48b..d64514b 100644
--- a/iconvdata/ibm1143.h
+++ b/iconvdata/ibm1143.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1144.h b/iconvdata/ibm1144.h
index 5e00b11..63632dc 100644
--- a/iconvdata/ibm1144.h
+++ b/iconvdata/ibm1144.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1145.h b/iconvdata/ibm1145.h
index 41a92bf..771cea7 100644
--- a/iconvdata/ibm1145.h
+++ b/iconvdata/ibm1145.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1146.h b/iconvdata/ibm1146.h
index 3d071cf..543f87f 100644
--- a/iconvdata/ibm1146.h
+++ b/iconvdata/ibm1146.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1147.h b/iconvdata/ibm1147.h
index 30dd442..dacf88c 100644
--- a/iconvdata/ibm1147.h
+++ b/iconvdata/ibm1147.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1148.h b/iconvdata/ibm1148.h
index ea135f6..1f9de88 100644
--- a/iconvdata/ibm1148.h
+++ b/iconvdata/ibm1148.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1149.h b/iconvdata/ibm1149.h
index 2fe222c..a86aa24 100644
--- a/iconvdata/ibm1149.h
+++ b/iconvdata/ibm1149.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1153.h b/iconvdata/ibm1153.h
index f61861e..df248cf 100644
--- a/iconvdata/ibm1153.h
+++ b/iconvdata/ibm1153.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1154.h b/iconvdata/ibm1154.h
index 253af80..24f5c05 100644
--- a/iconvdata/ibm1154.h
+++ b/iconvdata/ibm1154.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1155.h b/iconvdata/ibm1155.h
index 4ac7873..1138d8b 100644
--- a/iconvdata/ibm1155.h
+++ b/iconvdata/ibm1155.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1156.h b/iconvdata/ibm1156.h
index 233f680..547751e 100644
--- a/iconvdata/ibm1156.h
+++ b/iconvdata/ibm1156.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1157.h b/iconvdata/ibm1157.h
index eefcb71..c7c021c 100644
--- a/iconvdata/ibm1157.h
+++ b/iconvdata/ibm1157.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1158.h b/iconvdata/ibm1158.h
index e69fa88..e569062 100644
--- a/iconvdata/ibm1158.h
+++ b/iconvdata/ibm1158.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1160.h b/iconvdata/ibm1160.h
index c7fd40f..78f7baa 100644
--- a/iconvdata/ibm1160.h
+++ b/iconvdata/ibm1160.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1161.h b/iconvdata/ibm1161.h
index 0a95ace..8b95356 100644
--- a/iconvdata/ibm1161.h
+++ b/iconvdata/ibm1161.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1162.h b/iconvdata/ibm1162.h
index c791e64..910a5a9 100644
--- a/iconvdata/ibm1162.h
+++ b/iconvdata/ibm1162.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1163.h b/iconvdata/ibm1163.h
index 6ffa4e3..541c631 100644
--- a/iconvdata/ibm1163.h
+++ b/iconvdata/ibm1163.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1164.h b/iconvdata/ibm1164.h
index 293c49c..7090257 100644
--- a/iconvdata/ibm1164.h
+++ b/iconvdata/ibm1164.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1166.h b/iconvdata/ibm1166.h
index da239a1..a8faf9a 100644
--- a/iconvdata/ibm1166.h
+++ b/iconvdata/ibm1166.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1167.h b/iconvdata/ibm1167.h
index 041e08e..f2de818 100644
--- a/iconvdata/ibm1167.h
+++ b/iconvdata/ibm1167.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm12712.h b/iconvdata/ibm12712.h
index ac81814..9276567 100644
--- a/iconvdata/ibm12712.h
+++ b/iconvdata/ibm12712.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm1390.h b/iconvdata/ibm1390.h
index 6cd15f6..5f2841e 100644
--- a/iconvdata/ibm1390.h
+++ b/iconvdata/ibm1390.h
@@ -20,6 +20,8 @@
 #ifndef _IBM1390_H
 #define _IBM1390_H 1
 
+#include <stdint.h>
+
 struct gap
 {
   uint32_t start;
diff --git a/iconvdata/ibm1399.h b/iconvdata/ibm1399.h
index 94e3ebe..323482a 100644
--- a/iconvdata/ibm1399.h
+++ b/iconvdata/ibm1399.h
@@ -20,6 +20,8 @@
 #ifndef _IBM1399_H
 #define _IBM1399_H 1
 
+#include <stdint.h>
+
 struct gap
 {
   uint32_t start;
diff --git a/iconvdata/ibm16804.h b/iconvdata/ibm16804.h
index 34fa59e..dcf52e2 100644
--- a/iconvdata/ibm16804.h
+++ b/iconvdata/ibm16804.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm4517.h b/iconvdata/ibm4517.h
index 87beadb..f46d608 100644
--- a/iconvdata/ibm4517.h
+++ b/iconvdata/ibm4517.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm4899.h b/iconvdata/ibm4899.h
index 4d99874..f90229e 100644
--- a/iconvdata/ibm4899.h
+++ b/iconvdata/ibm4899.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm4909.h b/iconvdata/ibm4909.h
index aab45d7..39c987e 100644
--- a/iconvdata/ibm4909.h
+++ b/iconvdata/ibm4909.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm4971.h b/iconvdata/ibm4971.h
index d1b2b4e..04c69b6 100644
--- a/iconvdata/ibm4971.h
+++ b/iconvdata/ibm4971.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm5347.h b/iconvdata/ibm5347.h
index 1f3bcc7..62c89b5 100644
--- a/iconvdata/ibm5347.h
+++ b/iconvdata/ibm5347.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm803.h b/iconvdata/ibm803.h
index ca187a4..bc22234 100644
--- a/iconvdata/ibm803.h
+++ b/iconvdata/ibm803.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm856.h b/iconvdata/ibm856.h
index a2b6efc..be77850 100644
--- a/iconvdata/ibm856.h
+++ b/iconvdata/ibm856.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm901.h b/iconvdata/ibm901.h
index c878670..2c773a3 100644
--- a/iconvdata/ibm901.h
+++ b/iconvdata/ibm901.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm902.h b/iconvdata/ibm902.h
index dec7502..1dcb67b 100644
--- a/iconvdata/ibm902.h
+++ b/iconvdata/ibm902.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm9030.h b/iconvdata/ibm9030.h
index 0b2242f..c2734ae 100644
--- a/iconvdata/ibm9030.h
+++ b/iconvdata/ibm9030.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm9066.h b/iconvdata/ibm9066.h
index 1e7df2d..228c01b 100644
--- a/iconvdata/ibm9066.h
+++ b/iconvdata/ibm9066.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm921.h b/iconvdata/ibm921.h
index 228e80f..cd921e2 100644
--- a/iconvdata/ibm921.h
+++ b/iconvdata/ibm921.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm922.h b/iconvdata/ibm922.h
index 442bb3a..ad3c98f 100644
--- a/iconvdata/ibm922.h
+++ b/iconvdata/ibm922.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/ibm9448.h b/iconvdata/ibm9448.h
index eda4371..2fa2cbc 100644
--- a/iconvdata/ibm9448.h
+++ b/iconvdata/ibm9448.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] =
 {
   [0x00] = 0x0000, [0x01] = 0x0001, [0x02] = 0x0002, [0x03] = 0x0003,
diff --git a/iconvdata/isiri-3342.h b/iconvdata/isiri-3342.h
index d12aa21..65a5069 100644
--- a/iconvdata/isiri-3342.h
+++ b/iconvdata/isiri-3342.h
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
 static const uint32_t to_ucs4[256] = {
   [0x01] = 0x0001,
   [0x02] = 0x0002,
diff --git a/iconvdata/jis0201.h b/iconvdata/jis0201.h
index 1c6f553..6b873d7 100644
--- a/iconvdata/jis0201.h
+++ b/iconvdata/jis0201.h
@@ -20,6 +20,8 @@
 #ifndef _JIS0201_H
 #define _JIS0201_H	1
 
+#include <stdint.h>
+
 /* Conversion table.  */
 extern const uint32_t __jisx0201_to_ucs4[];
 
diff --git a/include/link.h b/include/link.h
index 7dc3cd1..1682467 100644
--- a/include/link.h
+++ b/include/link.h
@@ -37,7 +37,7 @@ struct link_map;
 extern unsigned int la_objopen (struct link_map *__map, Lmid_t __lmid,
 				uintptr_t *__cookie);
 
-
+#include <stdint.h>
 #include <stddef.h>
 #include <bits/linkmap.h>
 #include <dl-lookupcfg.h>
diff --git a/include/netdb.h b/include/netdb.h
index 8a569ba..e97d1bf 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -1,5 +1,6 @@
 #ifndef	_NETDB_H
 #include <resolv/netdb.h>
+#include <stdint.h>
 
 #ifndef _ISOMAC
 /* Macros for accessing h_errno from inside libc.  */
diff --git a/inet/check_native.c b/inet/check_native.c
index e45a7ff..46ee837 100644
--- a/inet/check_native.c
+++ b/inet/check_native.c
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <ifaddrs.h>
-
+#include <stdint.h>
 
 void
 attribute_hidden
diff --git a/inet/check_pf.c b/inet/check_pf.c
index 6968973..0e50602 100644
--- a/inet/check_pf.c
+++ b/inet/check_pf.c
@@ -18,7 +18,7 @@
 
 #include <ifaddrs.h>
 #include <netdb.h>
-
+#include <stdint.h>
 
 void
 attribute_hidden
diff --git a/inet/getipv4sourcefilter.c b/inet/getipv4sourcefilter.c
index b6bcffe..258829f 100644
--- a/inet/getipv4sourcefilter.c
+++ b/inet/getipv4sourcefilter.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <stdint.h>
 #include <netinet/in.h>
 
 
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 436604b..ce54fe4 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -43,6 +43,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <arpa/inet.h>
 #include <net/if.h>
 #include <netinet/in.h>
diff --git a/inet/getsourcefilter.c b/inet/getsourcefilter.c
index 174f326..662a60a 100644
--- a/inet/getsourcefilter.c
+++ b/inet/getsourcefilter.c
@@ -19,7 +19,7 @@
 
 #include <errno.h>
 #include <netinet/in.h>
-
+#include <stdint.h>
 
 int
 getsourcefilter (int s, uint32_t interface, const struct sockaddr *group,
diff --git a/inet/htonl.c b/inet/htonl.c
index 0a6205f..c753cb1 100644
--- a/inet/htonl.c
+++ b/inet/htonl.c
@@ -15,6 +15,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include <netinet/in.h>
 
 #undef	htonl
diff --git a/inet/netinet/icmp6.h b/inet/netinet/icmp6.h
index 49e30de..900f8b1 100644
--- a/inet/netinet/icmp6.h
+++ b/inet/netinet/icmp6.h
@@ -20,6 +20,7 @@
 
 #include <inttypes.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/types.h>
 #include <netinet/in.h>
 
diff --git a/inet/netinet/ip6.h b/inet/netinet/ip6.h
index 47c6f02..61d5ae0 100644
--- a/inet/netinet/ip6.h
+++ b/inet/netinet/ip6.h
@@ -19,6 +19,7 @@
 #define _NETINET_IP6_H 1
 
 #include <inttypes.h>
+#include <stdint.h>
 #include <netinet/in.h>
 
 struct ip6_hdr
diff --git a/inet/setipv4sourcefilter.c b/inet/setipv4sourcefilter.c
index f3841f5..af96659 100644
--- a/inet/setipv4sourcefilter.c
+++ b/inet/setipv4sourcefilter.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <stdint.h>
 #include <netinet/in.h>
 
 
diff --git a/inet/setsourcefilter.c b/inet/setsourcefilter.c
index 53f1ec4..4f9c23f 100644
--- a/inet/setsourcefilter.c
+++ b/inet/setsourcefilter.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <stdint.h>
 #include <netinet/in.h>
 
 
diff --git a/inet/test-inet6_opt.c b/inet/test-inet6_opt.c
index 4db9b59..3bf319e 100644
--- a/inet/test-inet6_opt.c
+++ b/inet/test-inet6_opt.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 
 #define OPT_X	42
 #define OPT_Y	43
diff --git a/inet/tst-network.c b/inet/tst-network.c
index af73cd0..6b79e62 100644
--- a/inet/tst-network.c
+++ b/inet/tst-network.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
+#include <stdint.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
diff --git a/libidn/idna.c b/libidn/idna.c
index daa1a87..7a15a25 100644
--- a/libidn/idna.c
+++ b/libidn/idna.c
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <stringprep.h>
 #include <punycode.h>
+#include <stdint.h>
 
 #include "idna.h"
 
diff --git a/libidn/nfkc.c b/libidn/nfkc.c
index f144d7b..6d4a88b 100644
--- a/libidn/nfkc.c
+++ b/libidn/nfkc.c
@@ -23,6 +23,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 
 #include "stringprep.h"
 
diff --git a/libidn/stringprep.c b/libidn/stringprep.c
index 201489f..d109a71 100644
--- a/libidn/stringprep.c
+++ b/libidn/stringprep.c
@@ -23,6 +23,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 
 #include "stringprep.h"
 
diff --git a/locale/C-collate.c b/locale/C-collate.c
index a5c02af..6c7edf0 100644
--- a/locale/C-collate.c
+++ b/locale/C-collate.c
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <endian.h>
+#include <stdint.h>
 #include "localeinfo.h"
 
 static const char collseqmb[] =
diff --git a/locale/C-ctype.c b/locale/C-ctype.c
index 95e7b21..e856254 100644
--- a/locale/C-ctype.c
+++ b/locale/C-ctype.c
@@ -18,6 +18,7 @@
 
 #include "localeinfo.h"
 #include <endian.h>
+#include <stdint.h>
 
 #include "C-translit.h"
 
diff --git a/locale/C-time.c b/locale/C-time.c
index a19623f..6f76deb 100644
--- a/locale/C-time.c
+++ b/locale/C-time.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "localeinfo.h"
 
 /* This table's entries are taken from POSIX.2 Table 2-11
diff --git a/locale/C-translit.h b/locale/C-translit.h
index d7ec778..98f66e2 100644
--- a/locale/C-translit.h
+++ b/locale/C-translit.h
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
 #define NTRANSLIT 1355
 static const uint32_t translit_from_idx[] =
 {
diff --git a/locale/loadarchive.c b/locale/loadarchive.c
index dd70c15..70136dc 100644
--- a/locale/loadarchive.c
+++ b/locale/loadarchive.c
@@ -25,6 +25,7 @@
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <sys/param.h>
diff --git a/locale/programs/3level.h b/locale/programs/3level.h
index c8ed119..9b8b1b9 100644
--- a/locale/programs/3level.h
+++ b/locale/programs/3level.h
@@ -15,6 +15,8 @@
    You should have received a copy of the GNU General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 /* Construction of sparse 3-level tables.
    See wchar-lookup.h or coll-lookup.h for their structure and the
    meaning of p and q.
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index fd92631..6ce9b18 100644
--- a/locale/programs/charmap.c
+++ b/locale/programs/charmap.c
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <error.h>
+#include <stdint.h>
 
 #include "localedef.h"
 #include "linereader.h"
diff --git a/locale/programs/charmap.h b/locale/programs/charmap.h
index 287a7a6..57a345d 100644
--- a/locale/programs/charmap.h
+++ b/locale/programs/charmap.h
@@ -20,6 +20,7 @@
 
 #include <obstack.h>
 #include <stdbool.h>
+#include <stdint.h>
 
 #include "repertoire.h"
 #include "simple-hash.h"
diff --git a/locale/programs/ld-address.c b/locale/programs/ld-address.c
index bb50395..39b9a83 100644
--- a/locale/programs/ld-address.c
+++ b/locale/programs/ld-address.c
@@ -23,6 +23,7 @@
 #include <error.h>
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c
index aa9eb4a..6894a7c 100644
--- a/locale/programs/ld-collate.c
+++ b/locale/programs/ld-collate.c
@@ -23,6 +23,7 @@
 #include <error.h>
 #include <stdlib.h>
 #include <wchar.h>
+#include <stdint.h>
 #include <sys/param.h>
 
 #include "localedef.h"
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index 23880ba..8be7fce 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -29,6 +29,7 @@
 #include <string.h>
 #include <wchar.h>
 #include <wctype.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include "localedef.h"
diff --git a/locale/programs/ld-identification.c b/locale/programs/ld-identification.c
index ca69ded..2589675 100644
--- a/locale/programs/ld-identification.c
+++ b/locale/programs/ld-identification.c
@@ -23,6 +23,7 @@
 #include <langinfo.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-measurement.c b/locale/programs/ld-measurement.c
index 005df4a..4aa0ea9 100644
--- a/locale/programs/ld-measurement.c
+++ b/locale/programs/ld-measurement.c
@@ -22,6 +22,7 @@
 #include <error.h>
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-messages.c b/locale/programs/ld-messages.c
index 833adb4..f1b9f93 100644
--- a/locale/programs/ld-messages.c
+++ b/locale/programs/ld-messages.c
@@ -23,6 +23,7 @@
 #include <sys/types.h>
 #include <regex.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-monetary.c b/locale/programs/ld-monetary.c
index aed175a..4dfca3d 100644
--- a/locale/programs/ld-monetary.c
+++ b/locale/programs/ld-monetary.c
@@ -24,6 +24,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-name.c b/locale/programs/ld-name.c
index de44775..207bf01 100644
--- a/locale/programs/ld-name.c
+++ b/locale/programs/ld-name.c
@@ -21,6 +21,7 @@
 
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-numeric.c b/locale/programs/ld-numeric.c
index b864b0e..929409c 100644
--- a/locale/programs/ld-numeric.c
+++ b/locale/programs/ld-numeric.c
@@ -21,6 +21,7 @@
 
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-paper.c b/locale/programs/ld-paper.c
index 32285de..c6239df 100644
--- a/locale/programs/ld-paper.c
+++ b/locale/programs/ld-paper.c
@@ -22,6 +22,7 @@
 #include <error.h>
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-telephone.c b/locale/programs/ld-telephone.c
index 172ad57..4452750 100644
--- a/locale/programs/ld-telephone.c
+++ b/locale/programs/ld-telephone.c
@@ -22,6 +22,7 @@
 #include <error.h>
 #include <langinfo.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c
index 9448647..45e36c6 100644
--- a/locale/programs/ld-time.c
+++ b/locale/programs/ld-time.c
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include <assert.h>
diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c
index 7fde46a..4773d4c 100644
--- a/locale/programs/linereader.c
+++ b/locale/programs/linereader.c
@@ -26,6 +26,7 @@
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 
 #include "localedef.h"
 #include "charmap.h"
diff --git a/locale/programs/locale.c b/locale/programs/locale.c
index 8dc528c..14d34e6 100644
--- a/locale/programs/locale.c
+++ b/locale/programs/locale.c
@@ -36,6 +36,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
index 70dce9b..d31472d 100644
--- a/locale/programs/locarchive.c
+++ b/locale/programs/locarchive.c
@@ -34,6 +34,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
diff --git a/locale/programs/locfile.h b/locale/programs/locfile.h
index 4165a72..83bf421 100644
--- a/locale/programs/locfile.h
+++ b/locale/programs/locfile.h
@@ -18,6 +18,7 @@
 #ifndef _LOCFILE_H
 #define _LOCFILE_H	1
 
+#include <stdint.h>
 #include <sys/uio.h>
 
 #include "linereader.h"
diff --git a/locale/programs/repertoire.c b/locale/programs/repertoire.c
index bc65672..be77b3e 100644
--- a/locale/programs/repertoire.c
+++ b/locale/programs/repertoire.c
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 
 #include "localedef.h"
 #include "linereader.h"
diff --git a/locale/programs/simple-hash.c b/locale/programs/simple-hash.c
index d65b6fb..30b1508 100644
--- a/locale/programs/simple-hash.c
+++ b/locale/programs/simple-hash.c
@@ -24,6 +24,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/types.h>
 
 #if HAVE_OBSTACK
diff --git a/locale/programs/simple-hash.h b/locale/programs/simple-hash.h
index 644d015..2ee2225 100644
--- a/locale/programs/simple-hash.h
+++ b/locale/programs/simple-hash.h
@@ -20,6 +20,7 @@
 
 #include <inttypes.h>
 #include <obstack.h>
+#include <stdint.h>
 
 typedef struct hash_table
 {
diff --git a/malloc/memusage.c b/malloc/memusage.c
index 0e40878..e32f6ba 100644
--- a/malloc/memusage.c
+++ b/malloc/memusage.c
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/time.h>
 
diff --git a/malloc/memusagestat.c b/malloc/memusagestat.c
index daeba1d..b244ef6 100644
--- a/malloc/memusagestat.c
+++ b/malloc/memusagestat.c
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 
diff --git a/nis/nis_defaults.c b/nis/nis_defaults.c
index f035e41..ff84fae 100644
--- a/nis/nis_defaults.c
+++ b/nis/nis_defaults.c
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/types.h>
 #include <rpc/rpc.h>
 #include <rpcsvc/nis.h>
diff --git a/nis/nis_hash.c b/nis/nis_hash.c
index e26b6b0..d8a6d06 100644
--- a/nis/nis_hash.c
+++ b/nis/nis_hash.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include <rpcsvc/nis.h>
 
 /* This is from libc/db/hash/hash_func.c, hash3 is static there */
diff --git a/nis/nis_print.c b/nis/nis_print.c
index 1e9ab9e..d24dcde 100644
--- a/nis/nis_print.c
+++ b/nis/nis_print.c
@@ -19,6 +19,7 @@
 #include <time.h>
 #include <string.h>
 #include <libintl.h>
+#include <stdint.h>
 
 #include <rpcsvc/nis.h>
 
diff --git a/nis/nis_xdr.c b/nis/nis_xdr.c
index efebef3..10c913c 100644
--- a/nis/nis_xdr.c
+++ b/nis/nis_xdr.c
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include <rpcsvc/nis.h>
 #include <rpcsvc/nis_callback.h> /* for "official" Solaris xdr functions */
 
diff --git a/nis/rpcsvc/nis.h b/nis/rpcsvc/nis.h
index 5c5c7bb..8c1037f 100644
--- a/nis/rpcsvc/nis.h
+++ b/nis/rpcsvc/nis.h
@@ -33,6 +33,7 @@
 #define _RPCSVC_NIS_H 1
 
 #include <features.h>
+#include <stdint.h>
 #include <rpc/rpc.h>
 #include <rpcsvc/nis_tags.h>
 
diff --git a/nis/rpcsvc/nislib.h b/nis/rpcsvc/nislib.h
index 2f6fd76..0c10131 100644
--- a/nis/rpcsvc/nislib.h
+++ b/nis/rpcsvc/nislib.h
@@ -20,6 +20,7 @@
 #define	__RPCSVC_NISLIB_H__
 
 #include <features.h>
+#include <stdint.h>
 
 __BEGIN_DECLS
 
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index c43077f..b78bd95 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -21,6 +21,7 @@
 #include <stdbool.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include "pthreadP.h"
 #include <hp-timing.h>
 #include <ldsodefs.h>
diff --git a/nptl/sysdeps/pthread/createthread.c b/nptl/sysdeps/pthread/createthread.c
index b0f686d..d24136b 100644
--- a/nptl/sysdeps/pthread/createthread.c
+++ b/nptl/sysdeps/pthread/createthread.c
@@ -23,6 +23,7 @@
 #include <atomic.h>
 #include <ldsodefs.h>
 #include <tls.h>
+#include <stdint.h>
 
 #include "kernel-features.h"
 
diff --git a/nptl_db/db_info.c b/nptl_db/db_info.c
index b019848..31c8d88 100644
--- a/nptl_db/db_info.c
+++ b/nptl_db/db_info.c
@@ -18,6 +18,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "thread_dbP.h"
 #include <tls.h>
 
diff --git a/nptl_db/fetch-value.c b/nptl_db/fetch-value.c
index 5ea8437..5986612 100644
--- a/nptl_db/fetch-value.c
+++ b/nptl_db/fetch-value.c
@@ -19,6 +19,7 @@
 #include "thread_dbP.h"
 #include <byteswap.h>
 #include <assert.h>
+#include <stdint.h>
 
 td_err_e
 _td_check_sizeof (td_thragent_t *ta, uint32_t *sizep, int sizep_name)
diff --git a/nptl_db/td_ta_clear_event.c b/nptl_db/td_ta_clear_event.c
index 058ac2c..cf24a1b 100644
--- a/nptl_db/td_ta_clear_event.c
+++ b/nptl_db/td_ta_clear_event.c
@@ -17,6 +17,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "thread_dbP.h"
 
 
diff --git a/nptl_db/td_ta_set_event.c b/nptl_db/td_ta_set_event.c
index 6d9b591..6729ffb 100644
--- a/nptl_db/td_ta_set_event.c
+++ b/nptl_db/td_ta_set_event.c
@@ -17,6 +17,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "thread_dbP.h"
 
 
diff --git a/nptl_db/td_ta_tsd_iter.c b/nptl_db/td_ta_tsd_iter.c
index 92414cd..e3f7ffe 100644
--- a/nptl_db/td_ta_tsd_iter.c
+++ b/nptl_db/td_ta_tsd_iter.c
@@ -17,6 +17,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "thread_dbP.h"
 #include <alloca.h>
 
diff --git a/nptl_db/td_thr_clear_event.c b/nptl_db/td_thr_clear_event.c
index 3e4c30b..bb6739d 100644
--- a/nptl_db/td_thr_clear_event.c
+++ b/nptl_db/td_thr_clear_event.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include "thread_dbP.h"
 
diff --git a/nptl_db/td_thr_get_info.c b/nptl_db/td_thr_get_info.c
index d17a0d7..18d0a2b 100644
--- a/nptl_db/td_thr_get_info.c
+++ b/nptl_db/td_thr_get_info.c
@@ -19,6 +19,7 @@
 
 #include <stddef.h>
 #include <string.h>
+#include <stdint.h>
 #include "thread_dbP.h"
 
 
diff --git a/nptl_db/td_thr_set_event.c b/nptl_db/td_thr_set_event.c
index a0634b2..b833c6c 100644
--- a/nptl_db/td_thr_set_event.c
+++ b/nptl_db/td_thr_set_event.c
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stddef.h>
+#include <stdint.h>
 
 #include "thread_dbP.h"
 
diff --git a/nptl_db/td_thr_tsd.c b/nptl_db/td_thr_tsd.c
index c8d0553..79e39d3 100644
--- a/nptl_db/td_thr_tsd.c
+++ b/nptl_db/td_thr_tsd.c
@@ -17,6 +17,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include "thread_dbP.h"
 
 
diff --git a/nscd/connections.c b/nscd/connections.c
index 56c3279..7099215 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -31,6 +31,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <arpa/inet.h>
 #ifdef HAVE_NETLINK
 # include <linux/netlink.h>
diff --git a/nscd/hstcache.c b/nscd/hstcache.c
index ca21452..0d421fc 100644
--- a/nscd/hstcache.c
+++ b/nscd/hstcache.c
@@ -29,6 +29,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <arpa/inet.h>
 #include <arpa/nameser.h>
 #include <sys/mman.h>
diff --git a/nscd/nscd_gethst_r.c b/nscd/nscd_gethst_r.c
index 4ede24b..e07f622 100644
--- a/nscd/nscd_gethst_r.c
+++ b/nscd/nscd_gethst_r.c
@@ -20,6 +20,7 @@
 #include <resolv.h>
 #include <stdio.h>
 #include <string.h>
+#include <stdint.h>
 #include <arpa/nameser.h>
 #include <not-cancel.h>
 
diff --git a/nscd/nscd_getserv_r.c b/nscd/nscd_getserv_r.c
index f79bd42..c9c890c 100644
--- a/nscd/nscd_getserv_r.c
+++ b/nscd/nscd_getserv_r.c
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <not-cancel.h>
 #include <_itoa.h>
+#include <stdint.h>
 
 #include "nscd-client.h"
 #include "nscd_proto.h"
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index ba58893..8587e45 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/poll.h>
 #include <sys/socket.h>
diff --git a/nscd/servicescache.c b/nscd/servicescache.c
index ebb8c45..b7738a7 100644
--- a/nscd/servicescache.c
+++ b/nscd/servicescache.c
@@ -22,6 +22,7 @@
 #include <libintl.h>
 #include <netdb.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <kernel-features.h>
 
diff --git a/nss/makedb.c b/nss/makedb.c
index 13bd846..bfc9084 100644
--- a/nss/makedb.c
+++ b/nss/makedb.c
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <sys/param.h>
 #include <sys/stat.h>
diff --git a/nss/nss_db/db-XXX.c b/nss/nss_db/db-XXX.c
index 9399ce2..40b5ce9 100644
--- a/nss/nss_db/db-XXX.c
+++ b/nss/nss_db/db-XXX.c
@@ -18,6 +18,7 @@
 
 #include <dlfcn.h>
 #include <fcntl.h>
+#include <stdint.h>
 #include <sys/mman.h>
 #include <bits/libc-lock.h>
 #include "nsswitch.h"
diff --git a/nss/nss_db/db-initgroups.c b/nss/nss_db/db-initgroups.c
index 3038b2e..d0d73f0 100644
--- a/nss/nss_db/db-initgroups.c
+++ b/nss/nss_db/db-initgroups.c
@@ -24,6 +24,7 @@
 #include <paths.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/param.h>
 
 #include "nss_db.h"
diff --git a/nss/nss_db/db-netgrp.c b/nss/nss_db/db-netgrp.c
index 8a5da38..203529f 100644
--- a/nss/nss_db/db-netgrp.c
+++ b/nss/nss_db/db-netgrp.c
@@ -23,6 +23,7 @@
 #include <fcntl.h>
 #include <netgroup.h>
 #include <string.h>
+#include <stdint.h>
 #include <bits/libc-lock.h>
 #include <paths.h>
 #include <stdlib.h>
diff --git a/nss/nss_files/files-network.c b/nss/nss_files/files-network.c
index 87ad5d3..f18e9e1 100644
--- a/nss/nss_files/files-network.c
+++ b/nss/nss_files/files-network.c
@@ -19,6 +19,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#include <stdint.h>
 
 #define ENTNAME		netent
 #define DATABASE	"networks"
diff --git a/nss/nss_files/files-parse.c b/nss/nss_files/files-parse.c
index 8ba277f..91f32da 100644
--- a/nss/nss_files/files-parse.c
+++ b/nss/nss_files/files-parse.c
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <string.h>
 #include <stdlib.h>
+#include <stdint.h>
 
 /* These symbols are defined by the including source file:
 
diff --git a/ports/sysdeps/aarch64/bits/link.h b/ports/sysdeps/aarch64/bits/link.h
index 3408c5b..bdbecb1 100644
--- a/ports/sysdeps/aarch64/bits/link.h
+++ b/ports/sysdeps/aarch64/bits/link.h
@@ -20,6 +20,8 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
+
 /* Registers for entry into PLT on AArch64.  */
 typedef struct La_aarch64_regs
 {
diff --git a/ports/sysdeps/alpha/bits/link.h b/ports/sysdeps/alpha/bits/link.h
index 12bd9dc..c867299 100644
--- a/ports/sysdeps/alpha/bits/link.h
+++ b/ports/sysdeps/alpha/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Registers for entry into PLT on Alpha.  */
 typedef struct La_alpha_regs
diff --git a/ports/sysdeps/am33/atomicity.h b/ports/sysdeps/am33/atomicity.h
index 12f72ef..e9705a2 100644
--- a/ports/sysdeps/am33/atomicity.h
+++ b/ports/sysdeps/am33/atomicity.h
@@ -22,6 +22,7 @@
 #define _ATOMICITY_H	1
 
 #include <inttypes.h>
+#include <stdint.h>
 
 #define __acquire_lock(lock) \
   __asm__ __volatile__("1:	bset	%1, (%0)\n\t"		\
diff --git a/ports/sysdeps/arm/bits/link.h b/ports/sysdeps/arm/bits/link.h
index 2f995e8..d7f6bfb 100644
--- a/ports/sysdeps/arm/bits/link.h
+++ b/ports/sysdeps/arm/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Registers for entry into PLT on ARM.  */
 typedef struct La_arm_regs
diff --git a/ports/sysdeps/hppa/bits/link.h b/ports/sysdeps/hppa/bits/link.h
index ccf13b4..8a2068e 100644
--- a/ports/sysdeps/hppa/bits/link.h
+++ b/ports/sysdeps/hppa/bits/link.h
@@ -19,6 +19,8 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
+
 /* Registers for entry into PLT on hppa.  */
 typedef struct La_hppa_regs
 {
diff --git a/ports/sysdeps/ia64/bits/link.h b/ports/sysdeps/ia64/bits/link.h
index dec8df8..e30b720 100644
--- a/ports/sysdeps/ia64/bits/link.h
+++ b/ports/sysdeps/ia64/bits/link.h
@@ -19,6 +19,8 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
+
 /* Registers for entry into PLT on ia64.  */
 typedef struct La_ia64_regs
 {
diff --git a/ports/sysdeps/m68k/bits/link.h b/ports/sysdeps/m68k/bits/link.h
index 038c4bb..19bbd45 100644
--- a/ports/sysdeps/m68k/bits/link.h
+++ b/ports/sysdeps/m68k/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Registers for entry into PLT on M68K.  */
 typedef struct La_m68k_regs
diff --git a/ports/sysdeps/microblaze/bits/link.h b/ports/sysdeps/microblaze/bits/link.h
index 2b2842a..dc69df0 100644
--- a/ports/sysdeps/microblaze/bits/link.h
+++ b/ports/sysdeps/microblaze/bits/link.h
@@ -20,6 +20,8 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
+
 /* Registers for entry into PLT on Microblaze.  */
 typedef struct La_microblaze_regs
 {
diff --git a/ports/sysdeps/mips/bits/atomic.h b/ports/sysdeps/mips/bits/atomic.h
index bdc3ace..7c735f7 100644
--- a/ports/sysdeps/mips/bits/atomic.h
+++ b/ports/sysdeps/mips/bits/atomic.h
@@ -19,6 +19,7 @@
 #ifndef _MIPS_BITS_ATOMIC_H
 #define _MIPS_BITS_ATOMIC_H 1
 
+#include <stdint.h>
 #include <inttypes.h>
 #include <sgidefs.h>
 
diff --git a/ports/sysdeps/mips/bits/link.h b/ports/sysdeps/mips/bits/link.h
index b4e5226..79a8334 100644
--- a/ports/sysdeps/mips/bits/link.h
+++ b/ports/sysdeps/mips/bits/link.h
@@ -20,6 +20,7 @@
 #endif
 
 #include <sgidefs.h>
+#include <stdint.h>
 
 #if _MIPS_SIM == _ABIO32
 
diff --git a/ports/sysdeps/tile/tilegx/memusage.h b/ports/sysdeps/tile/tilegx/memusage.h
index 863b229..a81916c 100644
--- a/ports/sysdeps/tile/tilegx/memusage.h
+++ b/ports/sysdeps/tile/tilegx/memusage.h
@@ -16,6 +16,7 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 #include <arch/spr_def.h>
 
 #define GETSP() ({ register uintptr_t stack_ptr asm ("sp"); stack_ptr; })
diff --git a/ports/sysdeps/tile/tilegx/string-endian.h b/ports/sysdeps/tile/tilegx/string-endian.h
index ee9bd16..69ca5fe 100644
--- a/ports/sysdeps/tile/tilegx/string-endian.h
+++ b/ports/sysdeps/tile/tilegx/string-endian.h
@@ -22,6 +22,8 @@
    Also, specify how to count "first" and "last" bits
    when the bits have been read as a word.  */
 
+#include <stdint.h>
+
 #ifndef __BIG_ENDIAN__
 #define MASK(x) (__insn_shl(1ULL, (x << 3)) - 1)
 #define NULMASK(x) ((2ULL << x) - 1)
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
index e5aa4a0..75e604f 100644
--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
+++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/elfclass.h
@@ -7,6 +7,7 @@
 #endif
 
 #include <bits/wordsize.h>
+#include <stdint.h>
 
 #define __ELF_NATIVE_CLASS __WORDSIZE
 
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
index b9437ff..4a096d2 100644
--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
+++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/netdb.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Description of data base entry for a single network.  NOTE: here a
    poor assumption is made.  The network number is expected to fit
diff --git a/ports/sysdeps/unix/sysv/linux/arm/bits/atomic.h b/ports/sysdeps/unix/sysv/linux/arm/bits/atomic.h
index c76b8f3..ae486e1 100644
--- a/ports/sysdeps/unix/sysv/linux/arm/bits/atomic.h
+++ b/ports/sysdeps/unix/sysv/linux/arm/bits/atomic.h
@@ -16,6 +16,8 @@
    License along with the GNU C Library.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 /* If the compiler doesn't provide a primitive, we'll use this macro
    to get assistance from the kernel.  */
 #ifdef __thumb2__
diff --git a/ports/sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h b/ports/sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h
index 77ffaf6..e870b20 100644
--- a/ports/sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h
+++ b/ports/sysdeps/unix/sysv/linux/mips/kernel_rt_sigframe.h
@@ -1,3 +1,5 @@
+#include <stdint.h>
+
 /* Linux kernel RT signal frame. */
 typedef struct kernel_rt_sigframe
   {
diff --git a/posix/bug-regex5.c b/posix/bug-regex5.c
index f199ffb..fd18b19 100644
--- a/posix/bug-regex5.c
+++ b/posix/bug-regex5.c
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdint.h>
 #include <locale.h>
 #include <locale/localeinfo.h>
 
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
index ef3c882..6c4301d 100644
--- a/posix/fnmatch_loop.c
+++ b/posix/fnmatch_loop.c
@@ -15,6 +15,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 struct STRUCT
 {
   const CHAR *pattern;
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 5780441..0ffc2fa 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern,
 					  size_t length, reg_syntax_t syntax);
 static void re_compile_fastmap_iter (regex_t *bufp,
diff --git a/posix/regexec.c b/posix/regexec.c
index 5ca2bf6..f85c5e8 100644
--- a/posix/regexec.c
+++ b/posix/regexec.c
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,
 				     int n) internal_function;
 static void match_ctx_clean (re_match_context_t *mctx) internal_function;
diff --git a/posix/tst-rfc3484-2.c b/posix/tst-rfc3484-2.c
index a37be36..fcf8a8c 100644
--- a/posix/tst-rfc3484-2.c
+++ b/posix/tst-rfc3484-2.c
@@ -1,6 +1,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <ifaddrs.h>
+#include <stdint.h>
 
 /* Internal definitions used in the libc code.  */
 #define __getservbyname_r getservbyname_r
diff --git a/posix/tst-rfc3484-3.c b/posix/tst-rfc3484-3.c
index 493e760..86d59be 100644
--- a/posix/tst-rfc3484-3.c
+++ b/posix/tst-rfc3484-3.c
@@ -1,6 +1,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <ifaddrs.h>
+#include <stdint.h>
 
 /* Internal definitions used in the libc code.  */
 #define __getservbyname_r getservbyname_r
diff --git a/posix/tst-rfc3484.c b/posix/tst-rfc3484.c
index db3ae1b..2726fa0 100644
--- a/posix/tst-rfc3484.c
+++ b/posix/tst-rfc3484.c
@@ -1,6 +1,7 @@
 #include <stdbool.h>
 #include <stdio.h>
 #include <ifaddrs.h>
+#include <stdint.h>
 
 /* Internal definitions used in the libc code.  */
 #define __getservbyname_r getservbyname_r
diff --git a/resolv/nss_dns/dns-canon.c b/resolv/nss_dns/dns-canon.c
index 090ed7d..cdc61b9 100644
--- a/resolv/nss_dns/dns-canon.c
+++ b/resolv/nss_dns/dns-canon.c
@@ -20,6 +20,7 @@
 #include <netdb.h>
 #include <resolv.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <arpa/nameser.h>
 #include <nsswitch.h>
 
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c
index 5c725b5..3c4db7e 100644
--- a/resolv/nss_dns/dns-network.c
+++ b/resolv/nss_dns/dns-network.c
@@ -61,6 +61,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 
 #include "nsswitch.h"
 #include <arpa/inet.h>
diff --git a/resolv/res_init.c b/resolv/res_init.c
index c58c763..002dec5 100644
--- a/resolv/res_init.c
+++ b/resolv/res_init.c
@@ -77,6 +77,7 @@ static const char rcsid[] = "$BINDId: res_init.c,v 8.16 2000/05/09 07:10:12 vixi
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <arpa/inet.h>
 #include <arpa/nameser.h>
 #include <net/if.h>
diff --git a/resolv/res_mkquery.c b/resolv/res_mkquery.c
index 2bc2d24..e2c6a74 100644
--- a/resolv/res_mkquery.c
+++ b/resolv/res_mkquery.c
@@ -83,6 +83,7 @@ static const char rcsid[] = "$BINDId: res_mkquery.c,v 8.12 1999/10/13 16:39:40 v
 
 #ifdef _LIBC
 # include <hp-timing.h>
+# include <stdint.h>
 # if HP_TIMING_AVAIL
 #  define RANDOM_BITS(Var) { uint64_t v64; HP_TIMING_NOW (v64); Var = v64; }
 # endif
diff --git a/resolv/tst-aton.c b/resolv/tst-aton.c
index 6cb5960..4e9caf9 100644
--- a/resolv/tst-aton.c
+++ b/resolv/tst-aton.c
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdint.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
diff --git a/stdlib/cxa_atexit.c b/stdlib/cxa_atexit.c
index 82e3365..0a42776 100644
--- a/stdlib/cxa_atexit.c
+++ b/stdlib/cxa_atexit.c
@@ -17,6 +17,7 @@
 
 #include <assert.h>
 #include <stdlib.h>
+#include <stdint.h>
 
 #include <bits/libc-lock.h>
 #include "exit.h"
diff --git a/stdlib/cxa_finalize.c b/stdlib/cxa_finalize.c
index f2a1c9b..2ee890f 100644
--- a/stdlib/cxa_finalize.c
+++ b/stdlib/cxa_finalize.c
@@ -21,6 +21,7 @@
 #include "exit.h"
 #include <fork.h>
 #include <sysdep.h>
+#include <stdint.h>
 
 /* If D is non-NULL, call all functions registered with `__cxa_atexit'
    with the same dso handle.  Otherwise, if D is NULL, call all of the
diff --git a/stdlib/gen-fpioconst.c b/stdlib/gen-fpioconst.c
index f0dd958..1ff1baf 100644
--- a/stdlib/gen-fpioconst.c
+++ b/stdlib/gen-fpioconst.c
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <gmp.h>
+#include <stdint.h>
 
 int
 main (void)
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
index dc6829f..874708a 100644
--- a/stdlib/strtol_l.c
+++ b/stdlib/strtol_l.c
@@ -43,6 +43,7 @@
 #include <string.h>
 #include <locale.h>
 #include <xlocale.h>
+#include <stdint.h>
 #include <bits/wordsize.h>
 
 #ifdef USE_NUMBER_GROUPING
diff --git a/string/tst-endian.c b/string/tst-endian.c
index c34dc45..8684bb2 100644
--- a/string/tst-endian.c
+++ b/string/tst-endian.c
@@ -2,7 +2,7 @@
 #include <endian.h>
 #include <inttypes.h>
 #include <stdio.h>
-
+#include <stdint.h>
 
 static int
 do_test (void)
diff --git a/sunrpc/auth_des.c b/sunrpc/auth_des.c
index 0408d60..b299c45 100644
--- a/sunrpc/auth_des.c
+++ b/sunrpc/auth_des.c
@@ -33,6 +33,7 @@
  */
 
 #include <string.h>
+#include <stdint.h>
 #include <rpc/des_crypt.h>
 #include <rpc/types.h>
 #include <rpc/auth.h>
diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c
index 8890cc6..7fc0777 100644
--- a/sunrpc/clnt_udp.c
+++ b/sunrpc/clnt_udp.c
@@ -42,6 +42,7 @@
 #include <sys/ioctl.h>
 #include <netdb.h>
 #include <errno.h>
+#include <stdint.h>
 #include <rpc/pmap_clnt.h>
 #include <net/if.h>
 #include <ifaddrs.h>
diff --git a/sunrpc/rpc/auth_des.h b/sunrpc/rpc/auth_des.h
index 21d40cc..ce90bd4 100644
--- a/sunrpc/rpc/auth_des.h
+++ b/sunrpc/rpc/auth_des.h
@@ -18,6 +18,7 @@
 #ifndef _RPC_AUTH_DES_H
 #define _RPC_AUTH_DES_H	1
 
+#include <stdint.h>
 #include <sys/cdefs.h>
 #include <rpc/auth.h>
 
diff --git a/sunrpc/rpc/xdr.h b/sunrpc/rpc/xdr.h
index 4e31eb5..63020bb 100644
--- a/sunrpc/rpc/xdr.h
+++ b/sunrpc/rpc/xdr.h
@@ -40,6 +40,7 @@
 
 /* We need FILE.  */
 #include <stdio.h>
+#include <stdint.h>
 
 __BEGIN_DECLS
 
diff --git a/sunrpc/rtime.c b/sunrpc/rtime.c
index bcb280b..d224624 100644
--- a/sunrpc/rtime.c
+++ b/sunrpc/rtime.c
@@ -39,6 +39,7 @@
  */
 #include <stdio.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <rpc/rpc.h>
 #include <rpc/clnt.h>
 #include <sys/types.h>
diff --git a/sunrpc/svcauth_des.c b/sunrpc/svcauth_des.c
index 9609734..a0f961d 100644
--- a/sunrpc/svcauth_des.c
+++ b/sunrpc/svcauth_des.c
@@ -43,6 +43,7 @@
 
 #include <limits.h>
 #include <string.h>
+#include <stdint.h>
 #include <sys/param.h>
 #include <netinet/in.h>
 #include <rpc/rpc.h>
diff --git a/sunrpc/xdr.c b/sunrpc/xdr.c
index 7eac2d4..b3f96ca 100644
--- a/sunrpc/xdr.c
+++ b/sunrpc/xdr.c
@@ -40,6 +40,7 @@
 #include <string.h>
 #include <libintl.h>
 #include <wchar.h>
+#include <stdint.h>
 
 #include <rpc/types.h>
 #include <rpc/xdr.h>
diff --git a/sunrpc/xdr_intXX_t.c b/sunrpc/xdr_intXX_t.c
index 39604c9..9de567c 100644
--- a/sunrpc/xdr_intXX_t.c
+++ b/sunrpc/xdr_intXX_t.c
@@ -21,6 +21,7 @@
 /* We play dirty tricks with aliases.  */
 #include <rpc/xdr.h>
 
+#include <stdint.h>
 
 /* XDR 64bit integers */
 bool_t
diff --git a/sunrpc/xdr_rec.c b/sunrpc/xdr_rec.c
index f5d6ef2..9d79ace 100644
--- a/sunrpc/xdr_rec.c
+++ b/sunrpc/xdr_rec.c
@@ -45,6 +45,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <rpc/rpc.h>
 #include <libintl.h>
 #include <wchar.h>
diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h
index ca3f0e4..d96089d 100644
--- a/sysdeps/generic/ldconfig.h
+++ b/sysdeps/generic/ldconfig.h
@@ -19,6 +19,8 @@
 #ifndef _LDCONFIG_H
 #define _LDCONFIG_H
 
+#include <stdint.h>
+
 #define FLAG_ANY		-1
 #define FLAG_TYPE_MASK		0x00ff
 #define FLAG_LIBC4		0x0000
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 41684f3..9455f18 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -26,6 +26,7 @@
 #define __need_NULL
 #include <stddef.h>
 #include <string.h>
+#include <stdint.h>
 
 #include <elf.h>
 #include <dlfcn.h>
diff --git a/sysdeps/generic/memusage.h b/sysdeps/generic/memusage.h
index 849f6e6..6312878 100644
--- a/sysdeps/generic/memusage.h
+++ b/sysdeps/generic/memusage.h
@@ -18,6 +18,7 @@
 
 #include <limits.h>
 #include <atomic.h>
+#include <stdint.h>
 
 #ifndef GETSP
 # warning "GETSP is not defined for this architecture."
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c b/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c
index a630d10..f686bb6 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c
@@ -18,6 +18,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 static const double one = 1.0, Zero[] = {0.0, -0.0,};
 
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c b/sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c
index 488a0ef..dcb7b58 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c
@@ -45,6 +45,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 static const double two54 = 1.80143985094819840000e+16;		/* 0x4350000000000000 */
 static const double ivln10 = 4.34294481903251816668e-01;	/* 0x3FDBCB7B1526E50E */
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/math_private.h b/sysdeps/ieee754/dbl-64/wordsize-64/math_private.h
index b66085e..4f92199 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/math_private.h
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/math_private.h
@@ -1,6 +1,7 @@
 #ifndef _MATH_PRIVATE_H_
 
 #include_next <math_private.h>
+#include <stdint.h>
 
 #ifndef __isnan
 extern __always_inline int
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
index f25ede8..fcf2e6d 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
@@ -16,6 +16,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 #undef __finite
 int
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c
index 5beccb0..914a3c8 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c
@@ -32,6 +32,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 /*
  * floor(x)
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c
index 70a620c..e80b84c 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c
@@ -17,6 +17,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 #undef __isnan
 int __isnan(double x)
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c
index 8974316..c309e56 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c
@@ -22,6 +22,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 static const double one = 1.0;
 
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c
index e9ae82b..29e6287 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c
@@ -20,7 +20,7 @@
 #include <math.h>
 
 #include <math_private.h>
-
+#include <stdint.h>
 
 static const double zero = 0.0;
 
diff --git a/sysdeps/ieee754/dbl-64/wordsize-64/s_round.c b/sysdeps/ieee754/dbl-64/wordsize-64/s_round.c
index df67467..bea7960 100644
--- a/sysdeps/ieee754/dbl-64/wordsize-64/s_round.c
+++ b/sysdeps/ieee754/dbl-64/wordsize-64/s_round.c
@@ -20,7 +20,7 @@
 #include <math.h>
 
 #include <math_private.h>
-
+#include <stdint.h>
 
 static const double huge = 1.0e300;
 
diff --git a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
index 1cce1fc..58eb57c 100644
--- a/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
+++ b/sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
@@ -4,6 +4,7 @@
 
 #include <sysdeps/ieee754/ldbl-128/math_ldbl.h>
 #include <ieee754.h>
+#include <stdint.h>
   
 static inline void
 ldbl_extract_mantissa (int64_t *hi64, uint64_t *lo64, int *exp, long double x)
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index d368306..ab135ad 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -47,6 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <stdio_ext.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <arpa/inet.h>
 #include <net/if.h>
 #include <netinet/in.h>
diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h
index b907bd6..5838664 100644
--- a/sysdeps/powerpc/bits/link.h
+++ b/sysdeps/powerpc/bits/link.h
@@ -20,6 +20,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 #if __ELF_NATIVE_CLASS == 32
 
diff --git a/sysdeps/powerpc/fpu/e_hypot.c b/sysdeps/powerpc/fpu/e_hypot.c
index f236339..cf2bb04 100644
--- a/sysdeps/powerpc/fpu/e_hypot.c
+++ b/sysdeps/powerpc/fpu/e_hypot.c
@@ -19,6 +19,7 @@
 
 #include <math.h>
 #include <math_private.h>
+#include <stdint.h>
 
 static const double two60   = 1.152921504606847e+18;
 static const double two500  = 3.2733906078961419e+150;
diff --git a/sysdeps/powerpc/fpu/e_hypotf.c b/sysdeps/powerpc/fpu/e_hypotf.c
index e97f0c3..36d8a9b 100644
--- a/sysdeps/powerpc/fpu/e_hypotf.c
+++ b/sysdeps/powerpc/fpu/e_hypotf.c
@@ -19,7 +19,7 @@
 
 #include <math.h>
 #include <math_private.h>
-
+#include <stdint.h>
 
 static const float two30  = 1.0737418e09;
 
diff --git a/sysdeps/powerpc/fpu/e_sqrt.c b/sysdeps/powerpc/fpu/e_sqrt.c
index 97bb870..3efe277 100644
--- a/sysdeps/powerpc/fpu/e_sqrt.c
+++ b/sysdeps/powerpc/fpu/e_sqrt.c
@@ -20,7 +20,7 @@
 #include <math_private.h>
 #include <fenv_libc.h>
 #include <inttypes.h>
-
+#include <stdint.h>
 #include <sysdep.h>
 #include <ldsodefs.h>
 
diff --git a/sysdeps/powerpc/fpu/e_sqrtf.c b/sysdeps/powerpc/fpu/e_sqrtf.c
index 3b2e243..6e50a3c 100644
--- a/sysdeps/powerpc/fpu/e_sqrtf.c
+++ b/sysdeps/powerpc/fpu/e_sqrtf.c
@@ -20,7 +20,7 @@
 #include <math_private.h>
 #include <fenv_libc.h>
 #include <inttypes.h>
-
+#include <stdint.h>
 #include <sysdep.h>
 #include <ldsodefs.h>
 
diff --git a/sysdeps/powerpc/test-gettimebase.c b/sysdeps/powerpc/test-gettimebase.c
index 88049c6..3ce55c7 100644
--- a/sysdeps/powerpc/test-gettimebase.c
+++ b/sysdeps/powerpc/test-gettimebase.c
@@ -22,6 +22,7 @@
 
 #include <inttypes.h>
 #include <stdio.h>
+#include <stdint.h>
 
 #include <sys/platform/ppc.h>
 
diff --git a/sysdeps/s390/bits/link.h b/sysdeps/s390/bits/link.h
index 0ea59ac..3b8a274 100644
--- a/sysdeps/s390/bits/link.h
+++ b/sysdeps/s390/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 #if __ELF_NATIVE_CLASS == 32
 
diff --git a/sysdeps/sh/bits/link.h b/sysdeps/sh/bits/link.h
index fed635e..79d3c2d 100644
--- a/sysdeps/sh/bits/link.h
+++ b/sysdeps/sh/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 /* Registers for entry into PLT on SH.  */
 typedef struct La_sh_regs
diff --git a/sysdeps/sparc/bits/link.h b/sysdeps/sparc/bits/link.h
index ffca19d..64496fa 100644
--- a/sysdeps/sparc/bits/link.h
+++ b/sysdeps/sparc/bits/link.h
@@ -20,6 +20,8 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
+
 #if __WORDSIZE == 32
 
 typedef struct La_sparc32_regs
diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c
index 8bc025b..34c2146 100644
--- a/sysdeps/unix/sysv/linux/check_pf.c
+++ b/sysdeps/unix/sysv/linux/check_pf.c
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 #include <sys/socket.h>
 
 #include <asm/types.h>
diff --git a/sysdeps/unix/sysv/linux/getipv4sourcefilter.c b/sysdeps/unix/sysv/linux/getipv4sourcefilter.c
index 5c90caa..9908248 100644
--- a/sysdeps/unix/sysv/linux/getipv4sourcefilter.c
+++ b/sysdeps/unix/sysv/linux/getipv4sourcefilter.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <netinet/in.h>
 #include <sys/param.h>
 #include <sys/socket.h>
diff --git a/sysdeps/unix/sysv/linux/getsourcefilter.c b/sysdeps/unix/sysv/linux/getsourcefilter.c
index 063d6c6..682f424 100644
--- a/sysdeps/unix/sysv/linux/getsourcefilter.c
+++ b/sysdeps/unix/sysv/linux/getsourcefilter.c
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <netatalk/at.h>
 #include <netax25/ax25.h>
 #include <netinet/in.h>
diff --git a/sysdeps/unix/sysv/linux/netlinkaccess.h b/sysdeps/unix/sysv/linux/netlinkaccess.h
index 7c1deb9..e0da57a 100644
--- a/sysdeps/unix/sysv/linux/netlinkaccess.h
+++ b/sysdeps/unix/sysv/linux/netlinkaccess.h
@@ -18,6 +18,7 @@
 #ifndef _NETLINKACCESS_H
 #define _NETLINKACCESS_H 1
 
+#include <stdint.h>
 #include <asm/types.h>
 #include <linux/netlink.h>
 #include <linux/rtnetlink.h>
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h b/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
index c562021..ade7d29 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/ppc.h
@@ -23,6 +23,8 @@
 # error "Never include this file directly; use <sys/platform/ppc.h> instead."
 #endif
 
+#include <stdint.h>
+
 __BEGIN_DECLS
 
 /* Read the time base frequency.   */
diff --git a/sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c b/sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
index 779ea49..344496b 100644
--- a/sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
+++ b/sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
@@ -22,6 +22,7 @@
 
 #include <inttypes.h>
 #include <stdio.h>
+#include <stdint.h>
 
 #include <sys/platform/ppc.h>
 
diff --git a/sysdeps/unix/sysv/linux/preadv.c b/sysdeps/unix/sysv/linux/preadv.c
index 219c663..e92af92 100644
--- a/sysdeps/unix/sysv/linux/preadv.c
+++ b/sysdeps/unix/sysv/linux/preadv.c
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <stddef.h>
 #include <sys/param.h>
+#include <stdint.h>
 #if __WORDSIZE == 64
 /* Hide the preadv64 declaration.  */
 # define preadv64 __redirect_preadv64
diff --git a/sysdeps/unix/sysv/linux/pwritev.c b/sysdeps/unix/sysv/linux/pwritev.c
index 51b46d6..8dcd216 100644
--- a/sysdeps/unix/sysv/linux/pwritev.c
+++ b/sysdeps/unix/sysv/linux/pwritev.c
@@ -17,6 +17,7 @@
 
 #include <errno.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <sys/param.h>
 #if __WORDSIZE == 64 && !defined PWRITEV
 /* Hide the pwritev64 declaration.  */
diff --git a/sysdeps/unix/sysv/linux/s390/bits/elfclass.h b/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
index 9d8a7df..0048bc4 100644
--- a/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
+++ b/sysdeps/unix/sysv/linux/s390/bits/elfclass.h
@@ -25,6 +25,7 @@
 #endif
 
 #include <bits/wordsize.h>
+#include <stdint.h>
 
 #define __ELF_NATIVE_CLASS __WORDSIZE
 
diff --git a/sysdeps/unix/sysv/linux/setipv4sourcefilter.c b/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
index ff32863..a9b4d3b 100644
--- a/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
+++ b/sysdeps/unix/sysv/linux/setipv4sourcefilter.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <netinet/in.h>
 #include <sys/socket.h>
 
diff --git a/sysdeps/unix/sysv/linux/setsourcefilter.c b/sysdeps/unix/sysv/linux/setsourcefilter.c
index 5ae3731..f50f293 100644
--- a/sysdeps/unix/sysv/linux/setsourcefilter.c
+++ b/sysdeps/unix/sysv/linux/setsourcefilter.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <netinet/in.h>
 #include <sys/socket.h>
 
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c b/sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c
index 7f6dee3..32cb0aa 100644
--- a/sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c
+++ b/sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c
@@ -20,6 +20,7 @@
 #include <sys/prctl.h>
 #include <sys/syscall.h>
 #include <sysdep.h>
+#include <stdint.h>
 
 /* Since x32 arch_prctl stores 32-bit base address of segment registers
    %fs and %gs as unsigned 64-bit value via ARCH_GET_FS and ARCH_GET_GS,
diff --git a/sysdeps/x86/bits/link.h b/sysdeps/x86/bits/link.h
index 475b141..41fbc08 100644
--- a/sysdeps/x86/bits/link.h
+++ b/sysdeps/x86/bits/link.h
@@ -19,6 +19,7 @@
 # error "Never include <bits/link.h> directly; use <link.h> instead."
 #endif
 
+#include <stdint.h>
 
 #ifndef __x86_64__
 /* Registers for entry into PLT on IA-32.  */
diff --git a/sysdeps/x86_64/dl-tls.h b/sysdeps/x86_64/dl-tls.h
index 2bb3e6f..af861c0 100644
--- a/sysdeps/x86_64/dl-tls.h
+++ b/sysdeps/x86_64/dl-tls.h
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
 
 /* Type used for the representation of TLS information in the GOT.  */
 typedef struct dl_tls_index
diff --git a/sysdeps/x86_64/dl-tlsdesc.h b/sysdeps/x86_64/dl-tlsdesc.h
index ea584bf..a6c0596 100644
--- a/sysdeps/x86_64/dl-tlsdesc.h
+++ b/sysdeps/x86_64/dl-tlsdesc.h
@@ -17,6 +17,8 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdint.h>
+
 #ifndef _X86_64_DL_TLSDESC_H
 # define _X86_64_DL_TLSDESC_H 1
 
diff --git a/time/alt_digit.c b/time/alt_digit.c
index 59fce11..7cd5119 100644
--- a/time/alt_digit.c
+++ b/time/alt_digit.c
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <wchar.h>
 #include <string.h>
+#include <stdint.h>
 
 /* Some of the functions here must not be used while setlocale is called.  */
 __libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden)
diff --git a/time/era.c b/time/era.c
index d272374..d10af8b 100644
--- a/time/era.c
+++ b/time/era.c
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <wchar.h>
 #include <string.h>
+#include <stdint.h>
 
 /* Some of the functions here must not be used while setlocale is called.  */
 __libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden)
diff --git a/wcsmbs/tst-c16c32-1.c b/wcsmbs/tst-c16c32-1.c
index f4534c5..3b1c1d6 100644
--- a/wcsmbs/tst-c16c32-1.c
+++ b/wcsmbs/tst-c16c32-1.c
@@ -2,7 +2,7 @@
 #include <locale.h>
 #include <stdio.h>
 #include <uchar.h>
-
+#include <stdint.h>
 
 static int
 do_test (void)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]