Skip to content

Commit 4bebf70

Browse files
mcfrisktiwai
authored andcommitted
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>
1 parent 76a3aea commit 4bebf70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/uapi/sound/asound.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
#include <linux/types.h>
2727

28+
#ifndef __KERNEL__
29+
#include <stdlib.h>
30+
#endif
2831

2932
/*
3033
* protocol version

0 commit comments

Comments
 (0)