Include <linux/ioctl.h> for _IOC_* macros
Fix a compilation failure with musl libc. * evdev.c: Include <linux/ioctl.h>. * ioctl.c: Include <linux/ioctl.h> instead of <asm/ioctl.h>. * ioctlsort.c: Likewise. Reported-by: Dima Krasner <dima@dimakrasner.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
d34e00b293
commit
3460dc486d
2
evdev.c
2
evdev.c
@ -28,6 +28,8 @@
|
||||
|
||||
#include "defs.h"
|
||||
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
#ifdef HAVE_LINUX_INPUT_H
|
||||
#include <linux/input.h>
|
||||
#include "xlat/evdev_abs.h"
|
||||
|
2
ioctl.c
2
ioctl.c
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "defs.h"
|
||||
#include <asm/ioctl.h>
|
||||
#include <linux/ioctl.h>
|
||||
#include "xlat/ioctl_dirs.h"
|
||||
|
||||
#ifdef HAVE_LINUX_INPUT_H
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <asm/ioctl.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
struct ioctlent {
|
||||
const char *info;
|
||||
|
Loading…
Reference in New Issue
Block a user