> Frank Liu <[EMAIL PROTECTED]> writes:
>
> > This is not runtime, it is compile time.
> > (even if it is runtime, how can uname() tell if you are running
> > a kernel provided by redhat or downloaded from kernel.org?).
> >
> > Anyway, the program calls function
> > kill_fasync()
> > under Redhat's kernel, it requires three arguments
> > (see /usr/src/linux/include/linux/fs.h)
> > under normal kernel, it requires two arguments.
> >
> > any hints what to do in the code so that it can compile under both
> > kernels?
>
> try play with /boot/kernel.h
[summer@emu summer]$ cat /boot/kernel.h
cat: /boot/kernel.h: No such file or directory
[summer@emu summer]$
It's part of kernel-headers. If you've downloades source from ftp.kernel.org
or a mirror, the file /boot/kernel.h may not exist, and may not contain
correct information anyway.
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list