summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-04-26 20:08:19 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-04-26 20:13:47 +0200
commitde3e9b35373bff3bd491c0a555cc825b6f22258d (patch)
tree89e77d790f54eb943eaaa59dea64617a65edaf8f
parent6c0c037b5f79a2dfe3b1d6ebc108ba461c6b4d46 (diff)
Add some missing includes
This fixes multiple build errors. Message-Id: <20210426170820.67042-3-bugaevc@gmail.com>
-rw-r--r--lib.c1
-rw-r--r--lib.h1
-rw-r--r--lnode.c1
-rw-r--r--lnode.h1
-rw-r--r--node.c1
-rw-r--r--stow.c2
-rw-r--r--ulfs.c1
-rw-r--r--update.c1
8 files changed, 9 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index e7f3aa9..01cdbd0 100644
--- a/lib.c
+++ b/lib.c
@@ -23,6 +23,7 @@
#include <errno.h>
#include <sys/mman.h>
#include <stddef.h>
+#include <stdlib.h>
#include <string.h>
#include "lib.h"
diff --git a/lib.h b/lib.h
index 095adaa..da01f4a 100644
--- a/lib.h
+++ b/lib.h
@@ -23,6 +23,7 @@
#include <hurd.h>
#include <dirent.h>
#include <stddef.h>
+#include <stdio.h>
/* Returned directory entries are aligned to blocks this many bytes
long. Must be a power of two. */
diff --git a/lnode.c b/lnode.c
index 427bc3c..4287489 100644
--- a/lnode.c
+++ b/lnode.c
@@ -21,6 +21,7 @@
nodes. */
#include <pthread.h>
+#include <assert.h>
#include <error.h>
#include <stdlib.h>
#include <string.h>
diff --git a/lnode.h b/lnode.h
index f5a50f7..0df3047 100644
--- a/lnode.h
+++ b/lnode.h
@@ -24,6 +24,7 @@
#include <pthread.h>
#include <error.h>
+#include <hurd.h>
struct lnode
{
diff --git a/node.c b/node.c
index 19228f6..78b5eb8 100644
--- a/node.c
+++ b/node.c
@@ -19,6 +19,7 @@
/* node management. */
+#include <assert.h>
#include <hurd/netfs.h>
#include <stdlib.h>
#include <error.h>
diff --git a/stow.c b/stow.c
index cf6366e..be1cbad 100644
--- a/stow.c
+++ b/stow.c
@@ -21,7 +21,9 @@
/* Stow mode for unionfs. */
#include <argp.h>
+#include <assert.h>
#include <error.h>
+#include <stdlib.h>
#include "ulfs.h"
#include "lib.h"
diff --git a/ulfs.c b/ulfs.c
index 50affa6..773ebc4 100644
--- a/ulfs.c
+++ b/ulfs.c
@@ -19,6 +19,7 @@
/* Underlying filesystem management. */
+#include <assert.h>
#include <stdlib.h>
#include <error.h>
#include <string.h>
diff --git a/update.c b/update.c
index 113b25c..f416d5e 100644
--- a/update.c
+++ b/update.c
@@ -21,6 +21,7 @@
root node update. */
#include <errno.h>
+#include <stdio.h>
#include <string.h>
#include "ncache.h"