mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
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).
This commit is contained in:
parent
165c5d31cb
commit
4c0a7af955
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/bsnmp/dist/; revision=150974
@ -43,6 +43,16 @@
|
||||
#include <assert.h>
|
||||
#include "asn1.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
|
||||
|
||||
static void asn_error_func(const struct asn_buf *, const char *, ...);
|
||||
|
||||
void (*asn_error)(const struct asn_buf *, const char *, ...) = asn_error_func;
|
||||
|
@ -179,14 +179,4 @@ enum {
|
||||
ASN_EXCEPT_ENDOFMIBVIEW = 0x02,
|
||||
};
|
||||
|
||||
#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
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -57,6 +57,10 @@
|
||||
#include "tree.h"
|
||||
#include "oid.h"
|
||||
|
||||
#if !defined(INT32_MAX)
|
||||
#define INT32_MAX (0x7fffffff)
|
||||
#endif
|
||||
|
||||
#define PATH_PID "/var/run/%s.pid"
|
||||
#define PATH_CONFIG "/etc/%s.config"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user