From fbc2a6fa09998c1b80866579c952e233b11c42f6 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 9 Mar 2007 15:30:38 +0100 Subject: [PATCH] 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. --- include/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.1