[alsa-devel] [PATCH - alsa-lib 1/1] include/global.h: missing struct on FreeBSD
Takashi Iwai
tiwai at suse.de
Sun Jan 11 11:27:52 CET 2015
At Sat, 10 Jan 2015 11:04:59 +0100,
rumko at rumko.net wrote:
>
> From: Rumko <rumko at rumko.net>
>
> On FreeBSD, struct timespec is not accessible through <time.h>,
> but through <sys/tiespec.h>. Add specific include for that header
> on that platform only.
>
> Signed-off-by: Rumko <rumko at rumko.net>
If you give your sign-off, please give the full real name.
thanks,
Takashi
>
> diff --git a/include/global.h b/include/global.h
> index 16a26dc..70be1f9 100644
> --- a/include/global.h
> +++ b/include/global.h
> @@ -31,6 +31,10 @@
> /* for timeval and timespec */
> #include <time.h>
>
> +#if defined(__FreeBSD__)
> +#include <sys/timespec.h>
> +#endif
> +
> #ifdef __cplusplus
> extern "C" {
> #endif
> --
> 2.2.1
>
More information about the Alsa-devel
mailing list