wave: add <time.h> missing header inclusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



alsa-project/tinycompress pull request #19 was opened from jolivain:

When compiling tinycompress with some libc other than glibc (e.g. musl libc), compilation fails with the following error:
    
    In file included from wave.c:11:0:
    /path/to/gcc/sysroot/usr/include/sound/asound.h:404:18: error: field 'trigger_tstamp' has incomplete type
      struct timespec trigger_tstamp; /* time when stream was started/stopped/paused */
    [...]
    
According to POSIX, `struct timespec` is defined in `<time.h>`. See: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
    
This patch fixes this build failure by including `<time.h>` prior `<sound/asound.h>`.

Note: the github master branch is currently not including the tag 1.2.8, which is why my pull-request is also showing commit 750ebbe.

Request URL   : https://github.com/alsa-project/tinycompress/pull/19
Patch URL     : https://github.com/alsa-project/tinycompress/pull/19.patch
Repository URL: https://github.com/alsa-project/tinycompress



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux