projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid integer overflow on exotic platforms.
[gnulib.git]
/
lib
/
xreadlink.c
diff --git
a/lib/xreadlink.c
b/lib/xreadlink.c
index
d56d2a6
..
b8bb3c4
100644
(file)
--- a/
lib/xreadlink.c
+++ b/
lib/xreadlink.c
@@
-19,7
+19,7
@@
/* Written by Jim Meyering <jim@meyering.net> */
/* Written by Jim Meyering <jim@meyering.net> */
-#if HAVE_CONFIG_H
+#if
def
HAVE_CONFIG_H
# include <config.h>
#endif
# include <config.h>
#endif
@@
-30,9
+30,7
@@
#include <limits.h>
#include <sys/types.h>
#include <stdlib.h>
#include <limits.h>
#include <sys/types.h>
#include <stdlib.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)
#ifndef SIZE_MAX
# define SIZE_MAX ((size_t) -1)