diff options
| author | Roy Marples <roy@marples.name> | 2007-09-04 12:48:40 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-09-04 12:48:40 +0000 |
| commit | 3e120d46a8dc084b5404f04cf98bf90cc0ba32cc (patch) | |
| tree | 16c762b55a144c65204526f79848a00d032be41a /ipv4ll.h | |
| parent | c1d07a4ec414fa76dfb3ea837f63a7699187a9c8 (diff) | |
| download | dhcpcd-3e120d46a8dc084b5404f04cf98bf90cc0ba32cc.tar.xz | |
Many thanks to Michael Durrant for testing the below changes.
Compile and work on OSX/Darwin.
If we have no fork then we re-exec ourselves with --daemonised.
Improved the build system so we automatically detect if we need
librt or libresolv and if fork() works or not.
Move back to using librt for clock_gettime on Linux systems.
Diffstat (limited to 'ipv4ll.h')
| -rw-r--r-- | ipv4ll.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -29,7 +29,9 @@ #define LINKLOCAL_MASK 0xffff0000 #define LINKLOCAL_BRDC 0xa9feffff -#define IN_LINKLOCAL(addr) ((ntohl (addr) & IN_CLASSB_NET) == LINKLOCAL_ADDR) +#ifndef IN_LINKLOCAL +# define IN_LINKLOCAL(addr) ((ntohl (addr) & IN_CLASSB_NET) == LINKLOCAL_ADDR) +#endif int ipv4ll_get_address (interface_t *iface, dhcp_t *dhcp); |
