diff options
author | Karl Linden <karl.j.linden@gmail.com> | 2018-01-01 12:12:15 +0100 |
---|---|---|
committer | Karl Lindén <karl.j.linden@gmail.com> | 2018-10-07 16:24:59 +0200 |
commit | 45f9332f54e8419795e52a46338c1d1e8c7263db (patch) | |
tree | 703accbee668824b98ae3bdb25f4a9d8372958a1 /example-clients | |
parent | 7fa02c2132ae72484113b7aba16ac436ac1deb82 (diff) | |
download | jack2-45f9332f54e8419795e52a46338c1d1e8c7263db.tar.gz |
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
Diffstat (limited to 'example-clients')
-rw-r--r-- | example-clients/alsa_out.c | 1 | ||||
-rw-r--r-- | example-clients/session_notify.c | 2 |
2 files changed, 3 insertions, 0 deletions
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 <alloca.h> #include <stdio.h> #include <errno.h> #include <unistd.h> 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 <karl.j.linden@gmail.com> * 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 <alloca.h> #include <stdio.h> #include <errno.h> #include <unistd.h> |