diff options
Diffstat (limited to 'src/fifo.c')
-rw-r--r-- | src/fifo.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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 |