Skip to contentSkip to conversation

#include <linux/uaccess.h> fails with Linux 2.4

Xenomai-core Wolfgang Grandegger 3 participants 3 messages Jan 9, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

recent versions of Xenomai include the header file "linux/uaccess.h" in "xenomai/include/asm-generic/syscall.h" which does not exist under Linux 2.4. "asm/uaccess" should be used instead. Any clever idea how to fix it (without using #ifdefs)?

Wolfgang.

#1 lore raw
Quoted 6 lines · Wolfgang Grandegger

Hello,

recent versions of Xenomai include the header file "linux/uaccess.h" in "xenomai/include/asm-generic/syscall.h" which does not exist under Linux 2.4. "asm/uaccess" should be used instead. Any clever idea how to fix it (without using #ifdefs)?

Add include/compat/linux/uaccess.h that does #include <asm/uaccess.h>

Signature · 1 line
                                               Gilles Chanteperdrix
#2 lore raw
In reply to Wolfgang Grandegger
Quoted 6 lines · Wolfgang Grandegger

Hello,

recent versions of Xenomai include the header file "linux/uaccess.h" in "xenomai/include/asm-generic/syscall.h" which does not exist under Linux 2.4. "asm/uaccess" should be used instead. Any clever idea how to fix it (without using #ifdefs)?

Actually, we should be fine with asm/uaccess.h in any case. Fixed in the repo.

Signature · 1 line
Philippe.