summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-10-08 15:43:19 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-10-08 15:43:19 +0200
commitd862b1001d64d5822bcd21836ba96b8006ffb650 (patch)
tree2ad40cd9be2ac432601e144f3dc22863cf6fd7a0 /modules
parentaf34233542ef053b7b7d8e7b35471b953cc12a6b (diff)
alsa: define _DEFAULT_SOURCE to make struct timespec visible (fixes #154)
Diffstat (limited to 'modules')
-rw-r--r--modules/alsa/alsa.c1
-rw-r--r--modules/alsa/alsa_play.c1
-rw-r--r--modules/alsa/alsa_src.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/modules/alsa/alsa.c b/modules/alsa/alsa.c
index bed4269..11485b5 100644
--- a/modules/alsa/alsa.c
+++ b/modules/alsa/alsa.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _POSIX_SOURCE 1
#include <sys/types.h>
#include <sys/time.h>
diff --git a/modules/alsa/alsa_play.c b/modules/alsa/alsa_play.c
index 9ca45bd..aca8da2 100644
--- a/modules/alsa/alsa_play.c
+++ b/modules/alsa/alsa_play.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _POSIX_SOURCE 1
#include <sys/types.h>
#include <sys/time.h>
diff --git a/modules/alsa/alsa_src.c b/modules/alsa/alsa_src.c
index 6688f9d..6e850a7 100644
--- a/modules/alsa/alsa_src.c
+++ b/modules/alsa/alsa_src.c
@@ -3,6 +3,7 @@
*
* Copyright (C) 2010 Creytiv.com
*/
+#define _DEFAULT_SOURCE 1
#define _POSIX_SOURCE 1
#include <sys/types.h>
#include <sys/time.h>