Browse Source

include/uapi/sound/asound.h: include stdlib.h in userspace

Fixes compiler errors like:
error: field ‘trigger_tstamp’ has incomplete type
error: invalid application of ‘sizeof’ to incomplete t
ype ‘struct timespec’

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Mikko Rapeli 10 years ago
parent
commit
4bebf7091a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/uapi/sound/asound.h

+ 3 - 0
include/uapi/sound/asound.h

@@ -25,6 +25,9 @@
 
 #include <linux/types.h>
 
+#ifndef __KERNEL__
+#include <stdlib.h>
+#endif
 
 /*
  *  protocol version