Mercurial > hg > dhcpcd
changeset 38:525c585a08b6 draft
Add NetBSD and OpenBSD support - untested though
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 19 Dec 2006 10:06:21 +0000 |
| parents | 6a27e2f8816e |
| children | 646f65220304 |
| files | ChangeLog Makefile interface.c socket.c |
| diffstat | 4 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Dec 18 14:30:32 2006 +0000 +++ b/ChangeLog Tue Dec 19 10:06:21 2006 +0000 @@ -1,6 +1,7 @@ +dhcpcd-3.0.7 Allow Linux to use Token Ring again as Linux does not have any more hardware specific code. BPF needs a patch for Token Ring support. -Dawin is now reported to work. +Dawin is now reported to work. NetBSD and OpenBSD should work also. cleanmetas now inserts a \ when it finds a ' so we get the proper values in our .info files when read by a shell. Add new CFLAGS to ensure that the code quality is good.
--- a/Makefile Mon Dec 18 14:30:32 2006 +0000 +++ b/Makefile Tue Dec 19 10:06:21 2006 +0000 @@ -43,6 +43,7 @@ version.h: echo '#define VERSION "$(VERSION)"' > version.h +# We define _BSD_SOURCE as GNU supports BSD too - which is nice :) $(dhcpcd_OBJS): $(CC) -D_BSD_SOURCE $(CFLAGS) -c $*.c
--- a/interface.c Mon Dec 18 14:30:32 2006 +0000 +++ b/interface.c Tue Dec 19 10:06:21 2006 +0000 @@ -96,8 +96,6 @@ } } - - interface_t *read_interface (const char *ifname, int metric) { @@ -227,7 +225,8 @@ return iface; } -#if defined(__FreeBSD__) || defined(__APPLE__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined (__OpenBSD__) \ +|| defined(__APPLE__) static int do_address (const char *ifname, struct in_addr address, struct in_addr netmask, struct in_addr broadcast, int del) {
--- a/socket.c Mon Dec 18 14:30:32 2006 +0000 +++ b/socket.c Tue Dec 19 10:06:21 2006 +0000 @@ -179,8 +179,8 @@ return retval; } -#if defined(__FreeBSD__) || defined(__APPLE__) - +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined (__OpenBSD__) \ +|| defined(__APPLE__) /* Credit where credit is due :) The below BPF filter is taken from ISC DHCP */
