summaryrefslogtreecommitdiffstats
path: root/contrib/bsnmp/lib/snmpclient.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-10-05 15:19:56 +0000
committerharti <harti@FreeBSD.org>2005-10-05 15:19:56 +0000
commit1973a24241e1546ff01c2e658c24e17f7ac6b29e (patch)
treea597f8aad14e9169ecd796ea3576f3baadc8ee18 /contrib/bsnmp/lib/snmpclient.c
parentefb2dfa1774240830b3f74b7fe4ab8050cc1cda0 (diff)
downloadFreeBSD-src-1973a24241e1546ff01c2e658c24e17f7ac6b29e.zip
FreeBSD-src-1973a24241e1546ff01c2e658c24e17f7ac6b29e.tar.gz
Vendor fix for the build problem of snmp_pf. Move the fallback definitions
for U?INT32_{MAX,MIN} from asn1.h into the .c files that actually require them (the .h file doesn't refer to these macros).
Diffstat (limited to 'contrib/bsnmp/lib/snmpclient.c')
-rw-r--r--contrib/bsnmp/lib/snmpclient.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/bsnmp/lib/snmpclient.c b/contrib/bsnmp/lib/snmpclient.c
index fa794f3..5e7d351 100644
--- a/contrib/bsnmp/lib/snmpclient.c
+++ b/contrib/bsnmp/lib/snmpclient.c
@@ -64,6 +64,14 @@
#include "snmpclient.h"
#include "snmppriv.h"
+#if !defined(INT32_MAX)
+#define INT32_MAX (0x7fffffff)
+#endif
+#if !defined(UINT32_MAX)
+#define UINT32_MAX (0xffffffff)
+#endif
+
+
/* global context */
struct snmp_client snmp_client;
OpenPOWER on IntegriCloud