summaryrefslogtreecommitdiff
path: root/src/fifo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fifo.c')
-rw-r--r--src/fifo.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/fifo.c b/src/fifo.c
index 5547294..f2da11e 100644
--- a/src/fifo.c
+++ b/src/fifo.c
@@ -1,9 +1,16 @@
-#include <sys/types.h>
-#include <sys/stat.h>
#include "fifo.h"
+#include <sys/stat.h>
+#include <sys/types.h>
+
#ifdef HASMKFIFO
-int fifo_make(char *fn, int mode) { return mkfifo(fn,mode); }
+int fifo_make(char *fn, int mode)
+{
+ return mkfifo(fn, mode);
+}
#else
-int fifo_make(char *fn, int mode) { return mknod(fn,S_IFIFO | mode,0); }
+int fifo_make(char *fn, int mode)
+{
+ return mknod(fn, S_IFIFO | mode, 0);
+}
#endif