X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=linux%2Fbsd_comp.c;h=952b32f504649dff2afb52cc571a62d3b3bf9590;hp=a52c32357d510260e1a37edfe0c40180492c2f92;hb=b5c0cf380b11e37f580e6f2affcb78d5ccedade0;hpb=720f112b7dc1bc416c3dd1be41bc9d290d5ef7dc diff --git a/linux/bsd_comp.c b/linux/bsd_comp.c index a52c323..952b32f 100644 --- a/linux/bsd_comp.c +++ b/linux/bsd_comp.c @@ -39,7 +39,7 @@ /* * This version is for use with contiguous buffers on Linux-derived systems. * - * ==FILEVERSION 960924== + * ==FILEVERSION 970607== * * NOTE TO MAINTAINERS: * If you modify this file at all, please set the number above to the @@ -57,17 +57,26 @@ #error This file must be compiled as a module. #endif +#include #include - #include #include #include #include #include #include +#include #include #include -#include + +#undef VERSION +/* a nice define to generate linux version numbers */ +#define VERSION(major,minor,patch) (((((major)<<8)+(minor))<<8)+(patch)) + +#if LINUX_VERSION_CODE >= VERSION(2,1,4) +#include +#endif + #include #include #include /* to get the struct task_struct */ @@ -76,7 +85,6 @@ #include #include -#include #include #include @@ -89,14 +97,6 @@ #include -#ifdef NEW_SKBUFF -#include -#endif - -#include -#include -#include - #undef PACKETPTR #define PACKETPTR 1 #include