From: Roy Marples Date: Wed, 9 Jan 2008 09:38:00 +0000 (+0000) Subject: We no longer need these headers. X-Git-Tag: v3.2.3~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a165b0a92af9103e7645120be472310ed397a4b3;p=thirdparty%2Fdhcpcd.git We no longer need these headers. --- diff --git a/socket.c b/socket.c index 92c438f5..d261d9cb 100644 --- a/socket.c +++ b/socket.c @@ -6,7 +6,7 @@ */ #ifdef __linux__ -#define _BSD_SOURCE +# define _BSD_SOURCE #endif #include @@ -18,11 +18,6 @@ #include #include #include -#ifndef __OpenBSD__ -#include -#include -#include -#endif #include #include #include @@ -40,7 +35,7 @@ /* A suitably large buffer for all transactions. BPF buffer size is set by the kernel, so no define. */ #ifdef __linux__ -#define BUFFER_LENGTH 4096 +# define BUFFER_LENGTH 4096 #endif static uint16_t checksum (unsigned char *addr, uint16_t len) @@ -559,8 +554,8 @@ int get_packet (const interface_t *iface, unsigned char *data, } #else -#error "Platform not supported!" -#error "We currently support BPF and Linux sockets." -#error "Other platforms may work using BPF. If yours does, please let me know" -#error "so I can add it to our list." +# error "Platform not supported!" +# error "We currently support BPF and Linux sockets." +# error "Other platforms may work using BPF. If yours does, please let me know" +# error "so I can add it to our list." #endif