Add __KERNEL__ to <linux/crc-ccitt.h>
PATCH 1/1 Add __KERNEL__ to <linux/crc-ccitt.h>
Hello. The following adds a __KERNEL__ check to <linux/crc-ccitt.h>. The problem is that the ppp package includes <linux/ppp_defs.h> via <net/ppp_defs.h>, which in turn gets <linux/crc-ccitt.h>.
include/linux/crc-ccitt.h +2 -0
@@ -1,5 +1,6 @@#ifndef _LINUX_CRC_CCITT_H#define _LINUX_CRC_CCITT_H +#ifdef __KERNEL__#include <linux/types.h>
@@ -12,4 +13,5 @@return (crc >>8 ) ^ crc_ccitt_table[(crc ^ c) &0xff ]; } +#endif /* __KERNEL__ */ #endif /* _LINUX_CRC_CCITT_H */
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Quoted 3 lines · Tom Rini
Hello. The following adds a
__KERNEL__check to <linux/crc-ccitt.h>. The problem is that the ppp package includes <linux/ppp_defs.h> via <net/ppp_defs.h>, which in turn gets <linux/crc-ccitt.h>.
By "the ppp package" do you mean my pppd or someone else's package? I though I had my version using a local copy of the necessary headers.
Paul.
Quoted 8 lines · Paul Mackerras
Quoted 3 lines · Tom Rini
Hello. The following adds a
__KERNEL__check to <linux/crc-ccitt.h>. The problem is that the ppp package includes <linux/ppp_defs.h> via <net/ppp_defs.h>, which in turn gets <linux/crc-ccitt.h>.By "the ppp package" do you mean my pppd or someone else's package? I though I had my version using a local copy of the necessary headers.
ppp_2.4.2+20040202.orig.tar.gz (Debian's ppp_2.4.2+20040202-3).
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/