]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2003-10-22 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Wed, 22 Oct 2003 02:50:45 +0000 (02:50 +0000)
committerpaul <paul>
Wed, 22 Oct 2003 02:50:45 +0000 (02:50 +0000)
        * lib/zebra.h: include limits.h if its there, its a portable header
          and useful and not just solaris specific. net/route.h is also
          useful.

lib/zebra.h

index 3193b6e28039caa7dc9d3c80e45a05b1f94befa8..51bdc88c78589d85457f73cf945c067eb524ebf9 100644 (file)
@@ -75,10 +75,12 @@ typedef int socklen_t;
 #ifdef HAVE_RUSAGE
 #include <sys/resource.h>
 #endif /* HAVE_RUSAGE */
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif /* HAVE_LIMITS_H */
 
 /* machine dependent includes */
 #ifdef SUNOS_5
-#include <limits.h>
 #include <strings.h>
 #endif /* SUNOS_5 */
 
@@ -129,7 +131,9 @@ typedef int socklen_t;
 #include <net/if_var.h>
 #endif /* HAVE_NET_IF_VAR_H */
 
+#ifdef HAVE_NET_ROUTE_H
 #include <net/route.h>
+#endif /* HAVE_NET_ROUTE_H */
 
 #ifdef HAVE_NETLINK
 #include <linux/netlink.h>