From 45f9332f54e8419795e52a46338c1d1e8c7263db Mon Sep 17 00:00:00 2001 From: Karl Linden Date: Mon, 1 Jan 2018 12:12:15 +0100 Subject: Handle alloca properly This adds missing includes for alloca. The man page of alloca(3) states that alloca.h should be #include'd to use alloca. Also work around missing alloca.h header on Windows by adding a compatibility module. Closes: #197 --- example-clients/alsa_out.c | 1 + example-clients/session_notify.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'example-clients') diff --git a/example-clients/alsa_out.c b/example-clients/alsa_out.c index 94955db9..d45a42b6 100644 --- a/example-clients/alsa_out.c +++ b/example-clients/alsa_out.c @@ -4,6 +4,7 @@ * as they would be used by many applications. */ +#include #include #include #include diff --git a/example-clients/session_notify.c b/example-clients/session_notify.c index 435fbcd6..7bb8dafb 100644 --- a/example-clients/session_notify.c +++ b/example-clients/session_notify.c @@ -1,6 +1,7 @@ /* * session_notify.c -- ultra minimal session manager * + * Copyright (C) 2018 Karl Linden * Copyright (C) 2010 Torben Hohn. * * This program is free software; you can redistribute it and/or modify @@ -18,6 +19,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include #include -- cgit v1.2.1