/*
* 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
#include <assert.h>
#include <sys/select.h>
#include <time.h>
-#include <alsa/asoundlib.h>
#include "configuration.h"
#include "syscalls.h"
#include "speaker.h"
#include "user.h"
+#if BUILD_SPEAKER
+#include <alsa/asoundlib.h>
+
#define BUFFER_SECONDS 5 /* How many seconds of input to
* buffer. */
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: