diff options
author | Jaroslav Kysela <perex@perex.cz> | 2013-11-08 12:30:04 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2013-11-08 12:34:44 +0100 |
commit | 7d06b3ed9fda0220c2863ee20acd10c32cf313fd (patch) | |
tree | 43ceae3b24f86d33e976a2345dc6e45852aa0e1b | |
parent | 2d6eb4e9ba1503e094d8cdc30a5a081fd22c1c84 (diff) | |
download | alsa-lib-7d06b3ed9fda0220c2863ee20acd10c32cf313fd.tar.gz |
include/global.h - don't define timeval and timespec structures for !glibc
On request from John Spencer <maillist-alsa@barfooze.de> .
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | include/global.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 3e3680fb..16a26dc8 100644 --- a/include/global.h +++ b/include/global.h @@ -133,6 +133,7 @@ int snd_shm_area_destroy(struct snd_shm_area *area); int snd_user_file(const char *file, char **result); +#ifdef __GLIBC__ #if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) struct timeval { time_t tv_sec; /* seconds */ @@ -144,6 +145,7 @@ struct timespec { long tv_nsec; /* nanoseconds */ }; #endif +#endif /** Timestamp */ typedef struct timeval snd_timestamp_t; |