Re: Detecting Red Hat builds ?

From: Keith Owens (kaos@ocs.com.au)
Date: Thu May 10 2001 - 21:28:32 EST


On Thu, 10 May 2001 17:25:29 +0100 (BST),
rjd@xyzzy.clara.co.uk 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:

ifneq ($(wildcard $(TOPDIR)/include/net/syncppp.h),)
  CFLAGS_driver_name.o += -I $(TOPDIR)/include/net
else
  CFLAGS_driver_name.o += -I $(TOPDIR)/drivers/net/wan
endif

and the driver does #include "syncppp.h".

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:24 EST