mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Changed #include <x/y> 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.
This commit is contained in:
4
lib/ip.h
4
lib/ip.h
@@ -10,9 +10,9 @@
|
||||
#define _BIRD_IP_H_
|
||||
|
||||
#ifndef IPV6
|
||||
#include <lib/ipv4.h>
|
||||
#include "ipv4.h"
|
||||
#else
|
||||
#include <lib/ipv6.h>
|
||||
#include "ipv6.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
|
||||
#define _BIRD_LISTS_C_
|
||||
|
||||
#include <nest/bird.h>
|
||||
#include <lib/lists.h>
|
||||
#include "nest/bird.h"
|
||||
#include "lib/lists.h"
|
||||
|
||||
LIST_INLINE void
|
||||
add_tail(list *l, node *n)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef _BIRD_RESOURCE_H_
|
||||
#define _BIRD_RESOURCE_H_
|
||||
|
||||
#include <lib/lists.h>
|
||||
#include "lib/lists.h"
|
||||
|
||||
/* Resource */
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef _BIRD_SOCKET_H_
|
||||
#define _BIRD_SOCKET_H_
|
||||
|
||||
#include <lib/resource.h>
|
||||
#include "lib/resource.h"
|
||||
|
||||
typedef struct birdsock socket;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#ifndef _BIRD_TIMER_H_
|
||||
#define _BIRD_TIMER_H_
|
||||
|
||||
#include <lib/resource.h>
|
||||
#include "lib/resource.h"
|
||||
|
||||
typedef struct timer {
|
||||
resource r;
|
||||
|
||||
Reference in New Issue
Block a user