From: Takashi Iwai Date: Fri, 9 Mar 2007 14:30:38 +0000 (+0100) Subject: Check _POSIX_SOURCE for timeval definition X-Git-Tag: v1.0.14rc4~19 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=fbc2a6fa09998c1b80866579c952e233b11c42f6;p=alsa-lib.git 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. --- diff --git a/include/global.h b/include/global.h index 4889eae5..4d5fb28d 100644 --- a/include/global.h +++ b/include/global.h @@ -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 */