I'm trying to compile afpfs --
which doesn't appear to have been touched since linux-2.0 --
under a current 2.4 kernel.
I'm wondering which headers should be used.
Should one use the headers in /usr/src/linux/include/linux/
I'm finding it quite difficult to deal with C source files
which require both <sys/types.h> and <linux/types.h> .
If one puts <sys/types.h> first then <features.h> is called,
and this has # define __KERNEL_STRICT_NAMES
which has the effect of cutting off some required typedefs.
On the other hand if one puts <linux/types.h> first
then many typedef's are duplicated, causing errors.
Here's the kind of trick I'm driven to:
# define __dev_t_defined
# define __mode_t_defined
# define __nlink_t_defined
I'm sure there must be a better way of doing this.
Any suggestions or advice gratefully received.
Incidentally, is there any way of "undefining" a typedef?
Is there any advice anywhere on this kind of thing.
tel: 086-233 6090
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland