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:
Felix Janda 2015-03-28 18:40:13 +01:00 committed by Dmitry V. Levin
parent d34e00b293
commit 3460dc486d
3 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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

View File

@ -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;