mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Check _POSIX_SOURCE for timeval definition
Check _POSIX_SOURCE for struct timeval definition. In rare cases, _POSIX_C_SOURCE isn't defined but only _POSIX_SOURCE is set, and it results in the confliction of timeval definition.
This commit is contained in:
parent
ba4291aa1b
commit
fbc2a6fa09
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ int snd_shm_area_destroy(struct snd_shm_area *area);
|
|||
|
||||
int snd_user_file(const char *file, char **result);
|
||||
|
||||
#ifndef _POSIX_C_SOURCE
|
||||
#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
|
||||
struct timeval {
|
||||
time_t tv_sec; /* seconds */
|
||||
long tv_usec; /* microseconds */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue