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>
diff --git a/pcm.c b/pcm.c
index 2c1308d..20bb7f0 100644
--- a/pcm.c
+++ b/pcm.c
@@ -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>