All of lore.kernel.org
 help / color / mirror / Atom feed
* wave: add <time.h> missing header inclusion
       [not found] <1667043405011606932-webhooks-bot@alsa-project.org>
@ 2022-10-29 11:36 ` GitHub pull_request - opened
  0 siblings, 0 replies; 2+ messages in thread
From: GitHub pull_request - opened @ 2022-10-29 11:36 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* wave: add <time.h> missing header inclusion
       [not found] <alsa-project/tinycompress/pr/38@alsa-project.org>
@ 2026-06-02 18:30 ` GitHub pull_request - opened
  0 siblings, 0 replies; 2+ messages in thread
From: GitHub pull_request - opened @ 2026-06-02 18:30 UTC (permalink / raw)
  To: alsa-devel

alsa-project/tinycompress pull request #38 was opened from bkuhls:

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>.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-02 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <alsa-project/tinycompress/pr/38@alsa-project.org>
2026-06-02 18:30 ` wave: add <time.h> missing header inclusion GitHub pull_request - opened
     [not found] <1667043405011606932-webhooks-bot@alsa-project.org>
2022-10-29 11:36 ` GitHub pull_request - opened

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.