summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 22:54:44 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-27 22:54:44 +0200
commitba4811b1d2ac5a9d363e6000c83098f2eb885119 (patch)
tree776184456b7a9181cd29bf23e0e214e5a67dd462 /lib/util
parent2f1b5d44343aac079af2671e97aa3ffd5c7e4b66 (diff)
Add a header for platform compatibillity fluff
- We don't have "endian.h" everywhere. On some BSDs its in sys and on some BSDs the macros have different names. - We definitely don't have sysmacros.h on non-Unix-like systems. - Likewise for sys/types.h, sys/stat.h and their contents. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/Makemodule.am2
-rw-r--r--lib/util/dirstack.c2
-rw-r--r--lib/util/mkdir_p.c2
3 files changed, 1 insertions, 5 deletions
diff --git a/lib/util/Makemodule.am b/lib/util/Makemodule.am
index 1d77fd5..58333ac 100644
--- a/lib/util/Makemodule.am
+++ b/lib/util/Makemodule.am
@@ -1,6 +1,6 @@
libutil_la_SOURCES = lib/util/write_data.c
libutil_la_SOURCES += lib/util/read_data.c include/util.h
-libutil_la_SOURCES += lib/util/mkdir_p.c
+libutil_la_SOURCES += lib/util/mkdir_p.c include/compat.h
libutil_la_SOURCES += lib/util/str_table.c include/str_table.h
libutil_la_SOURCES += lib/util/dirstack.c lib/util/padd_file.c
libutil_la_SOURCES += lib/util/alloc.c
diff --git a/lib/util/dirstack.c b/lib/util/dirstack.c
index 8f7baf1..20a89cc 100644
--- a/lib/util/dirstack.c
+++ b/lib/util/dirstack.c
@@ -6,8 +6,6 @@
*/
#include "config.h"
-#include <sys/types.h>
-#include <sys/stat.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
diff --git a/lib/util/mkdir_p.c b/lib/util/mkdir_p.c
index f9d7730..93d0f59 100644
--- a/lib/util/mkdir_p.c
+++ b/lib/util/mkdir_p.c
@@ -6,8 +6,6 @@
*/
#include "config.h"
-#include <sys/types.h>
-#include <sys/stat.h>
#include <string.h>
#include <alloca.h>
#include <stdio.h>