diff options
author | harti <harti@FreeBSD.org> | 2005-10-05 15:19:56 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2005-10-05 15:19:56 +0000 |
commit | 1973a24241e1546ff01c2e658c24e17f7ac6b29e (patch) | |
tree | a597f8aad14e9169ecd796ea3576f3baadc8ee18 /contrib/bsnmp/snmp_ntp | |
parent | efb2dfa1774240830b3f74b7fe4ab8050cc1cda0 (diff) | |
download | FreeBSD-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/snmp_ntp')
-rw-r--r-- | contrib/bsnmp/snmp_ntp/snmp_ntp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/bsnmp/snmp_ntp/snmp_ntp.c b/contrib/bsnmp/snmp_ntp/snmp_ntp.c index b798847..830c01f 100644 --- a/contrib/bsnmp/snmp_ntp/snmp_ntp.c +++ b/contrib/bsnmp/snmp_ntp/snmp_ntp.c @@ -55,6 +55,16 @@ #include "ntp_tree.h" #include "ntp_oid.h" +#if !defined(INT32_MIN) +#define INT32_MIN (-0x7fffffff-1) +#endif +#if !defined(INT32_MAX) +#define INT32_MAX (0x7fffffff) +#endif +#if !defined(UINT32_MAX) +#define UINT32_MAX (0xffffffff) +#endif + #define NTPC_MAX 576 #define NTPC_VERSION 3 #define NTPC_MODE 6 |