summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-30 15:57:46 +0000
committerJim Meyering <jim@meyering.net>1993-10-30 15:57:46 +0000
commitc7ebcc8326dfe8b9455ec8995a38b73826538928 (patch)
tree2cb0b23f3bfd37e82c4f884c064f558c801c30c3 /src/csplit.c
parent01e9d7611ab5840e415f3c6c2e29b0951238ae58 (diff)
downloadcoreutils-c7ebcc8326dfe8b9455ec8995a38b73826538928.tar.xz
merge with 1.8.1a
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c
index aad7f3171..f27290b77 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -33,7 +33,9 @@
#include <getopt.h>
#include <sys/types.h>
#include <signal.h>
+#ifdef HAVE_LIMITS_H
#include <limits.h>
+#endif /* HAVE_LIMITS_H */
#include "regex.h"
#include "system.h"
#include "version.h"
@@ -49,6 +51,10 @@ char *realloc ();
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif
+#ifndef INT_MAX
+#define INT_MAX (~(1 << (sizeof (int) * 8 - 1)))
+#endif /* INT_MAX */
+
void error ();