Fix SIGUSR1 handling on Solaris.
[paraslash.git] / gui_common.c
index 6ca226e6e0d468e953f3e1aac6cab52364f94ffb..6bd54081ba1fbd5f45d0249419e9ec752c04041e 100644 (file)
@@ -1,9 +1,19 @@
+/*
+ * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
+/** \file gui_common.c Functions used by the guis of paraslash. */
+
+
+#include <sys/types.h>
+#include <dirent.h>
+
 #include "para.h"
 #include "string.h"
 #include "fd.h"
 
-extern const char *status_item_list[NUM_STAT_ITEMS];
-
 int para_open_audiod_pipe(char *cmd)
 {
        int fds[3] = {0, 1, 0};
@@ -11,7 +21,7 @@ int para_open_audiod_pipe(char *cmd)
        int ret = para_exec_cmdline_pid(&pid, cmd, fds);
        if (ret < 0)
                return ret;
-       ret = mark_fd_nonblock(fds[1]);
+       ret = mark_fd_nonblocking(fds[1]);
        if (ret > 0)
                return fds[1];
        close(fds[1]);