From 1feea03e7463d8eaeb00d5df6c2cd3e8e20f2bcd Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 28 Apr 1998 14:39:34 +0000 Subject: Changed #include to #include "x/y" for our local includes, so that gcc -MM can be used to separate them from the system ones. Added automatic generation of dependencies. --- lib/ip.h | 4 ++-- lib/ipv4.h | 2 +- lib/lists.c | 4 ++-- lib/resource.h | 2 +- lib/socket.h | 2 +- lib/timer.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'lib') diff --git a/lib/ip.h b/lib/ip.h index cd12ded..dc4f8b8 100644 --- a/lib/ip.h +++ b/lib/ip.h @@ -10,9 +10,9 @@ #define _BIRD_IP_H_ #ifndef IPV6 -#include +#include "ipv4.h" #else -#include +#include "ipv6.h" #endif #endif diff --git a/lib/ipv4.h b/lib/ipv4.h index e5c1e8c..4b8c44c 100644 --- a/lib/ipv4.h +++ b/lib/ipv4.h @@ -18,7 +18,7 @@ typedef struct ipv4_addr { #define _I(x) (x).addr #define _MI(x) ((struct ip_addr) { x }) -#define IPA_NONE(_MI(0)) +#define IPA_NONE (_MI(0)) #define ipa_equal(x,y) (_I(x) == _I(y)) #define ipa_and(x,y) _MI(_I(x) & _I(y)) diff --git a/lib/lists.c b/lib/lists.c index 321a5f0..55c2b0f 100644 --- a/lib/lists.c +++ b/lib/lists.c @@ -8,8 +8,8 @@ #define _BIRD_LISTS_C_ -#include -#include +#include "nest/bird.h" +#include "lib/lists.h" LIST_INLINE void add_tail(list *l, node *n) diff --git a/lib/resource.h b/lib/resource.h index a1d229e..eabc963 100644 --- a/lib/resource.h +++ b/lib/resource.h @@ -9,7 +9,7 @@ #ifndef _BIRD_RESOURCE_H_ #define _BIRD_RESOURCE_H_ -#include +#include "lib/lists.h" /* Resource */ diff --git a/lib/socket.h b/lib/socket.h index 4f68a16..f1c9a64 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -9,7 +9,7 @@ #ifndef _BIRD_SOCKET_H_ #define _BIRD_SOCKET_H_ -#include +#include "lib/resource.h" typedef struct birdsock socket; diff --git a/lib/timer.h b/lib/timer.h index 29f20c4..506e3c9 100644 --- a/lib/timer.h +++ b/lib/timer.h @@ -9,7 +9,7 @@ #ifndef _BIRD_TIMER_H_ #define _BIRD_TIMER_H_ -#include +#include "lib/resource.h" typedef struct timer { resource r; -- cgit v1.2.3