This was easier than expected. Only two items needed fixing:
- signal.h has to be included for several files that use signals.
- The __used and __packed macros are already defined on FreeBSD which
leads to an error at compile time. Fortunately paraslash doesn't use
these macros at all, so we can simply remove them.
------------------------------------------------------------------------------
- * Linux and Mac OS support
+ * Runs on Linux, Mac OS, FreeBSD and probably other Unixes.
* mp3, oggvorbis, aac(m4a) support
* local or remote http, dccp, and ortp network audio streaming
* volume normalizer
/** \file afs.c Paraslash's audio file selector. */
+#include <signal.h>
#include <fnmatch.h>
#include "server.cmdline.h"
#include "para.h"
/** \file command.c does client authentication and executes server commands */
+#include <signal.h>
#include <sys/time.h>
#include <sys/types.h>
#include <dirent.h>
# define inline inline __attribute__ ((always_inline))
# define __noreturn __attribute__ ((noreturn))
# define __malloc __attribute__ ((malloc))
-# define __used __attribute__ ((used))
# define __a_unused __attribute__ ((unused))
-# define __packed __attribute__ ((packed))
# define likely(x) __builtin_expect (!!(x), 1)
# define unlikely(x) __builtin_expect (!!(x), 0)
/*
/** \file gui.c ncurses-based interface for paraslash */
+#include <signal.h>
#include <sys/types.h>
#include <dirent.h>
-
#include "gui.cmdline.h"
#include "para.h"
#include "gui.h"
/** \file playlist_selector.c The playlist audio file selector of paraslash */
+#include <signal.h>
#include "para.h"
#include "afh.h"
#include "server.h"
*
*/
+#include <signal.h>
#include <sys/types.h>
#include <dirent.h>