Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: GitHub pull_request - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: wave: add <time.h> missing header inclusion
Date: Tue,  2 Jun 2026 20:30:10 +0200 (CEST)	[thread overview]
Message-ID: <18b5571ccaa1c600-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <alsa-project/tinycompress/pr/38@alsa-project.org>

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

       reply	other threads:[~2026-06-02 18:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alsa-project/tinycompress/pr/38@alsa-project.org>
2026-06-02 18:30 ` GitHub pull_request - opened [this message]
     [not found] <1667043405011606932-webhooks-bot@alsa-project.org>
2022-10-29 11:36 ` wave: add <time.h> missing header inclusion GitHub pull_request - opened

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18b5571ccaa1c600-webhooks-bot@alsa-project.org \
    --to=github@alsa-project.org \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox