Define some types if missing

Include Linux headers on Linux only.
For portability with non-Linux.

Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Thomas Klausner 2016-03-02 23:11:54 +01:00 committed by Takashi Iwai
parent 623d3be080
commit 25e6b5b473
3 changed files with 70 additions and 4 deletions

View file

@ -50,11 +50,11 @@
#include <sys/poll.h>
#include <sys/types.h>
#include <errno.h>
#if defined(__linux__)
#include <linux/types.h>
#include <linux/ioctl.h>
#ifndef EBADFD
#define EBADFD EBADF
#else
#include "type_compat.h"
#endif
#ifdef SUPPORT_RESMGR