fixed mode_t not defined
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 5 Feb 2017 11:49:58 +0000 (12:49 +0100)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 5 Feb 2017 11:49:58 +0000 (12:49 +0100)
src/lib/pio.c
src/lib/pio.h

index ef0c901..7bb3d7c 100644 (file)
@@ -24,7 +24,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 
 #include <plog.h>
 #include <pio.h>
index 13eb70e..b7b0652 100644 (file)
@@ -22,6 +22,8 @@
 
 #define P_IO_VER 6
 
+#include <sys/types.h>
+
 /* Returns '1' if a given 'path' denotates a directory else returns
  * 0
  */