]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: uapi: #include <time.h> in asound.h
authorDaniel Mentz <danielmentz@google.com>
Fri, 29 Mar 2019 22:48:54 +0000 (15:48 -0700)
committerTakashi Iwai <tiwai@suse.de>
Tue, 2 Apr 2019 07:27:21 +0000 (09:27 +0200)
commite1f8acd4450e7a71839d5cf4f3c4512c9417e73f
tree7b54d3c7bec792c2de31d12fdf58595dea07d02a
parent3ee0abf77f1c8091e79a50ccc688352990439d78
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: Daniel Mentz <danielmentz@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/uapi/sound/asound.h