Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5bdbb6c authored by Daniel Mentz's avatar Daniel Mentz Committed by Takashi Iwai
Browse files

ALSA: uapi: #include <time.h> in asound.h



The uapi header asound.h defines types based on struct timespec. We need
to #include <time.h> to get access to the definition of this struct.

Previously, we encountered the following error message when building
applications with a clang/bionic toolchain:

kernel-headers/sound/asound.h:350:19: error: field has incomplete type 'struct timespec'
  struct timespec trigger_tstamp;
                  ^

The absence of the time.h #include statement does not cause build errors
with glibc, because its version of stdlib.h indirectly includes time.h.

Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent ea5c7eba
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -32,6 +32,7 @@


#ifndef __KERNEL__
#ifndef __KERNEL__
#include <stdlib.h>
#include <stdlib.h>
#include <time.h>
#endif
#endif


/*
/*