This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Include <stdint.h> when using SIZE_MAX or SSIZE_MAX.
- From: <maxim at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: Maxim Kuvyrkov <maxim at codesourcery dot com>
- Date: Fri, 19 Oct 2012 21:11:36 -0700
- Subject: [PATCH] Include <stdint.h> when using SIZE_MAX or SSIZE_MAX.
- References: <1350706296-13031-1-git-send-email-maxim@codesourcery.com>
From: Maxim Kuvyrkov <maxim@codesourcery.com>
* libio/iogetdelim.c, sysdeps/posix/preadv.c, sysdeps/posix/pwritev.c
* sysdeps/posix/readv.c, sysdeps/posix/writev.c, time/tzfile.c: Include
stdint.h for SIZE_MAX or SSIZE_MAX.
---
libio/iogetdelim.c | 1 +
sysdeps/posix/preadv.c | 1 +
sysdeps/posix/pwritev.c | 1 +
sysdeps/posix/readv.c | 1 +
sysdeps/posix/writev.c | 1 +
time/tzfile.c | 1 +
6 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libio/iogetdelim.c b/libio/iogetdelim.c
index bf4b0f7..bce842c 100644
--- a/libio/iogetdelim.c
+++ b/libio/iogetdelim.c
@@ -30,6 +30,7 @@
#include <string.h>
#include <errno.h>
#include <limits.h>
+#include <stdint.h>
/* Read up to (and including) a TERMINATOR from FP into *LINEPTR
(and null-terminate it). *LINEPTR is a pointer returned from malloc (or
diff --git a/sysdeps/posix/preadv.c b/sysdeps/posix/preadv.c
index 24d23ee..d56b5c1 100644
--- a/sysdeps/posix/preadv.c
+++ b/sysdeps/posix/preadv.c
@@ -28,6 +28,7 @@
#endif
#include <sys/uio.h>
#include <bits/wordsize.h>
+#include <stdint.h>
#ifndef PREADV
# define PREADV preadv
diff --git a/sysdeps/posix/pwritev.c b/sysdeps/posix/pwritev.c
index 274b057..8704385 100644
--- a/sysdeps/posix/pwritev.c
+++ b/sysdeps/posix/pwritev.c
@@ -28,6 +28,7 @@
#endif
#include <sys/uio.h>
#include <bits/wordsize.h>
+#include <stdint.h>
#ifndef PWRITEV
# define PWRITEV pwritev
diff --git a/sysdeps/posix/readv.c b/sysdeps/posix/readv.c
index 1cf75e4..89fd376 100644
--- a/sysdeps/posix/readv.c
+++ b/sysdeps/posix/readv.c
@@ -23,6 +23,7 @@
#include <sys/param.h>
#include <sys/uio.h>
#include <errno.h>
+#include <stdint.h>
static void
diff --git a/sysdeps/posix/writev.c b/sysdeps/posix/writev.c
index 9a4d4c3..f870f3f 100644
--- a/sysdeps/posix/writev.c
+++ b/sysdeps/posix/writev.c
@@ -23,6 +23,7 @@
#include <sys/param.h>
#include <sys/uio.h>
#include <errno.h>
+#include <stdint.h>
static void
diff --git a/time/tzfile.c b/time/tzfile.c
index 80976d0..d541bd8 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -25,6 +25,7 @@
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <stdint.h>
#define NOID
#include <timezone/tzfile.h>
--
1.7.0.4