mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-20 01:40:08 -05:00
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>
This commit is contained in:
parent
2d6eb4e9ba
commit
7d06b3ed9f
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,7 @@ int snd_shm_area_destroy(struct snd_shm_area *area);
|
||||||
|
|
||||||
int snd_user_file(const char *file, char **result);
|
int snd_user_file(const char *file, char **result);
|
||||||
|
|
||||||
|
#ifdef __GLIBC__
|
||||||
#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
|
#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
|
||||||
struct timeval {
|
struct timeval {
|
||||||
time_t tv_sec; /* seconds */
|
time_t tv_sec; /* seconds */
|
||||||
|
|
@ -144,6 +145,7 @@ struct timespec {
|
||||||
long tv_nsec; /* nanoseconds */
|
long tv_nsec; /* nanoseconds */
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/** Timestamp */
|
/** Timestamp */
|
||||||
typedef struct timeval snd_timestamp_t;
|
typedef struct timeval snd_timestamp_t;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue