aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-23 16:07:38 +0100
commitf6afde3c5dcece3b4980cebcde09a9ecca9e20d8 (patch)
tree48294a30843b08709d6c2dbdc1734a14e176c865 /lib
parentdd4d7e713290d9cecbebc6933e41d027bac63c8f (diff)
Move some unix header inclusions to compat.h
In most cases, including unistd.h and fcntl.h was a left over anyway. In the cases where it was not, move it to compat.h. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/common/data_reader_dump.c1
-rw-r--r--lib/common/io_stdin.c1
-rw-r--r--lib/sqfs/meta_reader.c1
-rw-r--r--lib/sqfs/meta_writer.c1
-rw-r--r--lib/sqfs/super.c1
-rw-r--r--lib/tar/read_retry.c1
-rw-r--r--lib/tar/write_retry.c1
7 files changed, 0 insertions, 7 deletions
diff --git a/lib/common/data_reader_dump.c b/lib/common/data_reader_dump.c
index 4065677..96103ce 100644
--- a/lib/common/data_reader_dump.c
+++ b/lib/common/data_reader_dump.c
@@ -7,7 +7,6 @@
#include "common.h"
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
diff --git a/lib/common/io_stdin.c b/lib/common/io_stdin.c
index 7abcd79..ca6bf49 100644
--- a/lib/common/io_stdin.c
+++ b/lib/common/io_stdin.c
@@ -7,7 +7,6 @@
#include "common.h"
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
#include <errno.h>
diff --git a/lib/sqfs/meta_reader.c b/lib/sqfs/meta_reader.c
index e8a17ad..0b8b33a 100644
--- a/lib/sqfs/meta_reader.c
+++ b/lib/sqfs/meta_reader.c
@@ -15,7 +15,6 @@
#include "util/util.h"
#include <stdlib.h>
-#include <unistd.h>
#include <string.h>
struct sqfs_meta_reader_t {
diff --git a/lib/sqfs/meta_writer.c b/lib/sqfs/meta_writer.c
index ee92b3b..cdd34e8 100644
--- a/lib/sqfs/meta_writer.c
+++ b/lib/sqfs/meta_writer.c
@@ -16,7 +16,6 @@
#include <string.h>
#include <stdlib.h>
-#include <unistd.h>
typedef struct meta_block_t {
struct meta_block_t *next;
diff --git a/lib/sqfs/super.c b/lib/sqfs/super.c
index 15b185d..18a6736 100644
--- a/lib/sqfs/super.c
+++ b/lib/sqfs/super.c
@@ -13,7 +13,6 @@
#include "util/util.h"
#include <string.h>
-#include <unistd.h>
int sqfs_super_init(sqfs_super_t *super, size_t block_size, sqfs_u32 mtime,
E_SQFS_COMPRESSOR compressor)
diff --git a/lib/tar/read_retry.c b/lib/tar/read_retry.c
index f81c52a..c76e5e5 100644
--- a/lib/tar/read_retry.c
+++ b/lib/tar/read_retry.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <unistd.h>
#include <errno.h>
#include <stdio.h>
diff --git a/lib/tar/write_retry.c b/lib/tar/write_retry.c
index 3977db1..f4f3166 100644
--- a/lib/tar/write_retry.c
+++ b/lib/tar/write_retry.c
@@ -6,7 +6,6 @@
*/
#include "config.h"
-#include <unistd.h>
#include <errno.h>
#include <stdio.h>