diff options
author | Jim Meyering <jim@meyering.net> | 2005-10-07 22:07:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-10-07 22:07:27 +0000 |
commit | 82ee4b140ca0bf8d050a5abf7c05ee2514772f99 (patch) | |
tree | f627570280144ffb7d4573f605226ad4da5efb95 | |
parent | a9ede5e9869bff403f742f1d2af668490e03a560 (diff) | |
download | coreutils-82ee4b140ca0bf8d050a5abf7c05ee2514772f99.tar.xz |
Merge from gnulib.
(SIZE_MAX): New macro, if not already defined.
-rw-r--r-- | lib/getdelim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/getdelim.c b/lib/getdelim.c index 42cac8f55..a131b0c63 100644 --- a/lib/getdelim.c +++ b/lib/getdelim.c @@ -29,6 +29,9 @@ #include <stdlib.h> #include <errno.h> +#ifndef SIZE_MAX +# define SIZE_MAX ((size_t) -1) +#endif #ifndef SSIZE_MAX # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) #endif |