> > systm.h is only supposed to > > be used inside the kernel. > > I meet same problem on compiling Loadable Kernel Module. > My countermeasure is use kernel source instead of /usr/include, > is this right way ? you'll note that the "Makefile"s for the example LKMs have lines like: CFLAGS= -DKERNEL -I/sys in them... chris