X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/6398b0776720659b579c31fcb489c0b31394b9d4..dea8f8aa43006bce1daf71893b65585d201a43ff:/server/speaker.c diff --git a/server/speaker.c b/server/speaker.c index 6296169..1593b78 100644 --- a/server/speaker.c +++ b/server/speaker.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2005, 2006 Richard Kettlewell + * Copyright (C) 2005, 2006, 2007 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,7 +41,6 @@ #include #include #include -#include #include "configuration.h" #include "syscalls.h" @@ -51,6 +50,9 @@ #include "speaker.h" #include "user.h" +#if BUILD_SPEAKER +#include + #define BUFFER_SECONDS 5 /* How many seconds of input to * buffer. */ @@ -622,6 +624,13 @@ int main(int argc, char **argv) { info("stopped (parent terminated)"); exit(0); } +#else +int main(int attribute((unused)) argc, char **argv) { + set_progname(argv); + mem_init(0); + fatal(0, "disorder-speaker not supported on this platform"); +} +#endif /* Local Variables: