From 3b424979f54c6b128d1ee8a7c33d072d321f2f0c Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 13 Oct 2003 09:47:32 +0000 Subject: 2003-10-13 Jay Fenlason * lib/zebra.h: define UINT32_MAX for those systems which do not provide it. * bgp_attr.h: define BGP_MED_MAX. * bgp_route.c: update defines/constants to BGP_MED_MAX. * bgp_routemap.c: ditto. clean up route_match_metric_compile slightly to avoid unneccesary XMALLOC. --- lib/zebra.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/zebra.h') diff --git a/lib/zebra.h b/lib/zebra.h index dc17730b..3193b6e2 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -178,6 +178,11 @@ typedef int socklen_t; #include #endif /* HAVE_NETINET6_ND6_H */ +/* Some systems do not define UINT32_MAX */ +#ifndef UINT32_MAX +#define UINT32_MAX 0xFFFFFFFFU +#endif /* UINT32_MAX */ + #ifdef HAVE_LIBUTIL_H #include #endif /* HAVE_LIBUTIL_H */ -- cgit v1.2.1