Re: Detecting Red Hat builds ?

2001-05-10 Thread Keith Owens
On Thu, 10 May 2001 17:25:29 +0100 (BST), [EMAIL PROTECTED] wrote: >The problem is I have a driver that includes syncppp.h which in the releases >from kernel.org is in linux/drivers/net/wan/ up to and including 2.4.2 after >which it moves to linux/include/net/. Do it in the Makefile. Untested:

RE: Detecting Red Hat builds ?

2001-05-10 Thread Khachaturov, Vassilii
For a RH7.x, at least, there is the /boot/kernel.h file generated on bootup, and the RH kernel headers include it somewhere. You can see if the corresponding symbols (coming from it) are defined, and assume redhat than. You might consider using passing -dM down to the preprocessor with the

RE: Detecting Red Hat builds ?

2001-05-10 Thread Khachaturov, Vassilii
For a RH7.x, at least, there is the /boot/kernel.h file generated on bootup, and the RH kernel headers include it somewhere. You can see if the corresponding symbols (coming from it) are defined, and assume redhat than. You might consider using passing -dM down to the preprocessor with the

Re: Detecting Red Hat builds ?

2001-05-10 Thread Keith Owens
On Thu, 10 May 2001 17:25:29 +0100 (BST), [EMAIL PROTECTED] wrote: The problem is I have a driver that includes syncppp.h which in the releases from kernel.org is in linux/drivers/net/wan/ up to and including 2.4.2 after which it moves to linux/include/net/. Do it in the Makefile. Untested: