include time.h, to prevent use of struct timespec before definition

In some old (2.6.32.x) kernel headers, asound.h does not include linux time.h
when __KERNEL__ is undefined, which may break userspace.

The build failures caused by this are similar to those fixed by c8333f8c.

Signed-off-by: Dima Krasner <dima@dimakrasner.com>
This commit is contained in:
Dima Krasner
2016-03-05 19:50:02 +02:00
parent 9bad3fa00f
commit 696c448f8a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include <time.h>
#include <sys/ioctl.h>
+1
View File
@@ -38,6 +38,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
#include <time.h>
#include <limits.h>
#include <linux/ioctl.h>