diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-09 20:36:27 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-09 20:36:27 -0700 |
commit | 3a57e7d0d3be1b223d8014b16d4dfaac283c4d6f (patch) | |
tree | 51b147f8ada564371f99c01cb9aa5659c1c44a8f /sockutils.c | |
parent | f33291aa9b1510944af6c1861d67c4138f8fe883 (diff) | |
download | libpcap-3a57e7d0d3be1b223d8014b16d4dfaac283c4d6f.tar.gz |
Assume we have limits.h.
It's in C90 (and I think it was in C89); if you don't have it, you have
an environment that's too old, especially given that we require a
C99-capable compiler on UN*X.
Diffstat (limited to 'sockutils.c')
-rw-r--r-- | sockutils.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sockutils.c b/sockutils.c index ef3fe764..e01bd967 100644 --- a/sockutils.c +++ b/sockutils.c @@ -56,11 +56,7 @@ #include <errno.h> /* for the errno variable */ #include <stdio.h> /* for the stderr file */ #include <stdlib.h> /* for malloc() and free() */ -#ifdef HAVE_LIMITS_H -#include <limits.h> -#else -#define INT_MAX 2147483647 -#endif +#include <limits.h> /* for INT_MAX */ #include "pcap-int.h" |