Bonjour,
Ayant une console Xbox, je voudrais compiler le module xpad pour utiliser le pad sur Debian.
J’ai trouvé ce tuto sur ubuntu-fr.
J’ai bien téléchargé deux fichiers : xpad.c et xpad.h, placé dans un dossier xpad.
J’ai créé le fichier Makefile
[code]KERNEL_DIR?=/usr/src/linux
obj-m:= xpad.o
KDIR := /lib/modules/$(shell uname -r)/build
EXTRA_CFLAGS=-I$(shell pwd)
all:
$(MAKE) modules -C $(KDIR) SUBDIRS=$(shell pwd)
[/code]
Mais à la commande make, il y a des erreurs 
~/xpad$ make
make modules -C /lib/modules/2.6.26-1-686/build SUBDIRS=/home/thomas/xpad
make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.26-1-686 »
CC [M] /home/thomas/xpad/xpad.o
/home/thomas/xpad/xpad.c: In function ‘xpad_open’:
/home/thomas/xpad/xpad.c:382: error: ‘struct input_dev’ has no member named ‘private’
/home/thomas/xpad/xpad.c: In function ‘xpad_close’:
/home/thomas/xpad/xpad.c:408: error: ‘struct input_dev’ has no member named ‘private’
/home/thomas/xpad/xpad.c: In function ‘xpad_probe’:
/home/thomas/xpad/xpad.c:496: error: ‘struct input_dev’ has no member named ‘cdev’
/home/thomas/xpad/xpad.c:497: error: ‘struct input_dev’ has no member named ‘private’
/home/thomas/xpad/xpad.c:564: warning: ignoring return value of ‘input_register_device’, declared with attribute warn_unused_result
make[2]: *** [/home/thomas/xpad/xpad.o] Erreur 1
make[1]: *** [_module_/home/thomas/xpad] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.26-1-686 »
make: *** [all] Erreur 2
Des idées ?