From: Ted Lemon Date: Mon, 13 May 1996 00:10:37 +0000 (+0000) Subject: Define default network API to use X-Git-Tag: BETA-2~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60b60a2b69cbb5fbdae1ee96e652aab3b666c4b7;p=thirdparty%2Fdhcp.git Define default network API to use --- diff --git a/cf/bsdos.h b/cf/bsdos.h index 4c86cafe6..828efbcab 100644 --- a/cf/bsdos.h +++ b/cf/bsdos.h @@ -71,3 +71,7 @@ extern int h_errno; #define SET_TIME(x, y) (*(x) = (y)) #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/cf/freebsd.h b/cf/freebsd.h index d76a8271f..ab58fd8cc 100644 --- a/cf/freebsd.h +++ b/cf/freebsd.h @@ -75,3 +75,7 @@ extern int h_errno; #define SET_MAX_TIME(x) (*(x) = INT_MAX) #define HAVE_SIN_LEN + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/cf/linux.h b/cf/linux.h index ffbefbdfe..eab26304c 100644 --- a/cf/linux.h +++ b/cf/linux.h @@ -109,5 +109,6 @@ extern int h_errno; #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) - - +#if defined (USE_DEFAULT_NETWORK) +# define USE_SOCKETS +#endif diff --git a/cf/netbsd.h b/cf/netbsd.h index f78bbc7c0..aa7b3c824 100644 --- a/cf/netbsd.h +++ b/cf/netbsd.h @@ -74,3 +74,7 @@ extern int h_errno; #define SET_MAX_TIME(x) (*(x) = INT_MAX) #define HAVE_SIN_LEN + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/cf/ultrix.h b/cf/ultrix.h index 2aff6f6f4..d179dcde7 100644 --- a/cf/ultrix.h +++ b/cf/ultrix.h @@ -101,3 +101,8 @@ extern int h_errno; #define SET_TIME(x, y) (*(x) = (y)) #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) + + +#if defined (USE_DEFAULT_NETWORK) +# define USE_SOCKETS +#endif diff --git a/includes/cf/bsdos.h b/includes/cf/bsdos.h index 4c86cafe6..828efbcab 100644 --- a/includes/cf/bsdos.h +++ b/includes/cf/bsdos.h @@ -71,3 +71,7 @@ extern int h_errno; #define SET_TIME(x, y) (*(x) = (y)) #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/includes/cf/freebsd.h b/includes/cf/freebsd.h index d76a8271f..ab58fd8cc 100644 --- a/includes/cf/freebsd.h +++ b/includes/cf/freebsd.h @@ -75,3 +75,7 @@ extern int h_errno; #define SET_MAX_TIME(x) (*(x) = INT_MAX) #define HAVE_SIN_LEN + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/includes/cf/linux.h b/includes/cf/linux.h index ffbefbdfe..eab26304c 100644 --- a/includes/cf/linux.h +++ b/includes/cf/linux.h @@ -109,5 +109,6 @@ extern int h_errno; #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) - - +#if defined (USE_DEFAULT_NETWORK) +# define USE_SOCKETS +#endif diff --git a/includes/cf/netbsd.h b/includes/cf/netbsd.h index f78bbc7c0..aa7b3c824 100644 --- a/includes/cf/netbsd.h +++ b/includes/cf/netbsd.h @@ -74,3 +74,7 @@ extern int h_errno; #define SET_MAX_TIME(x) (*(x) = INT_MAX) #define HAVE_SIN_LEN + +#if defined (USE_DEFAULT_NETWORK) +# define USE_BPF +#endif diff --git a/includes/cf/ultrix.h b/includes/cf/ultrix.h index 2aff6f6f4..d179dcde7 100644 --- a/includes/cf/ultrix.h +++ b/includes/cf/ultrix.h @@ -101,3 +101,8 @@ extern int h_errno; #define SET_TIME(x, y) (*(x) = (y)) #define ADD_TIME(d, s1, s2) (*(d) = *(s1) + *(s2)) #define SET_MAX_TIME(x) (*(x) = INT_MAX) + + +#if defined (USE_DEFAULT_NETWORK) +# define USE_SOCKETS +#endif