mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] ALSA: Fix definition of __time_pad
@ 2019-12-28 11:38 A. Wilcox
  0 siblings, 0 replies; only message in thread
From: A. Wilcox @ 2019-12-28 11:38 UTC (permalink / raw)
  To: arnd, musl, baolin.wang; +Cc: A. Wilcox

The uapi definition of __time_pad was missing a closing brace, causing
compile errors in ex. alsa-lib:

In file included from ../../include/local.h:146,
                 from control_local.h:22,
                 from tlv.c:36:
/usr/include/sound/asound.h:471:66: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘__time_pad’
 typedef struct { unsigned char pad[sizeof(time_t) - sizeof(int)] __time_pad;
                                                                  ^~~~~~~~~~

Fixes: df4d6b0e01b8 ("ALSA: Avoid using timespec for struct snd_pcm_status")
Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
---
 include/uapi/sound/asound.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/sound/asound.h b/include/uapi/sound/asound.h
index e6a958b8aff1..b0e5c45204d4 100644
--- a/include/uapi/sound/asound.h
+++ b/include/uapi/sound/asound.h
@@ -471,7 +471,7 @@ enum {
 
 #ifndef __KERNEL__
 /* explicit padding avoids incompatibility between i386 and x86-64 */
-typedef struct { unsigned char pad[sizeof(time_t) - sizeof(int)] __time_pad;
+typedef struct { unsigned char pad[sizeof(time_t) - sizeof(int)] } __time_pad;
 
 struct snd_pcm_status {
 	snd_pcm_state_t state;		/* stream state */
-- 
2.24.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-28 11:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28 11:38 [PATCH] ALSA: Fix definition of __time_pad A. Wilcox

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).