From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/15073 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] ALSA: Fix definition of __time_pad Date: Sat, 28 Dec 2019 05:38:14 -0600 Message-ID: <20191228113814.48976-1-AWilcox@Wilcox-Tech.com> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="166723"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "A. Wilcox" To: arnd@arndb.de, musl@lists.openwall.com, baolin.wang@linaro.org Original-X-From: musl-return-15089-gllmg-musl=m.gmane.org@lists.openwall.com Sat Dec 28 12:39:00 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1ilAQu-000hFA-7x for gllmg-musl@m.gmane.org; Sat, 28 Dec 2019 12:39:00 +0100 Original-Received: (qmail 30069 invoked by uid 550); 28 Dec 2019 11:38:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30034 invoked from network); 28 Dec 2019 11:38:56 -0000 X-Mailer: git-send-email 2.24.1 Xref: news.gmane.org gmane.linux.lib.musl.general:15073 Archived-At: 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 --- 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