void-packages/srcpkgs/mpg123/patches/fix-alsa_timeval.patch
Juergen Buchmueller 2fbc6113b8 mpg123: fix build with alsa
We need to include <time.h> before _POSIX_SOURCE is defined, or the
struct timespec won't be defined for the snd_htimestamp_t typedef.

Closes #4671
2016-08-26 21:49:55 +02:00

10 lines
388 B
Diff

--- src/libout123/modules/alsa.c 2016-06-30 09:04:40.000000000 +0200
+++ src/libout123/modules/alsa.c 2016-08-26 21:45:39.584130976 +0200
@@ -13,6 +13,7 @@
http://mailman.alsa-project.org/pipermail/alsa-devel/2007-June/001684.html
... seems like the conclusion was not carried through.
*/
+#include <time.h>
#define _POSIX_SOURCE
#include "out123_int.h"
#include <errno.h>