summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-14 22:29:12 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-08-05 19:15:52 +0200
commit2b9837e2f687356f9de307ae3d41762503baf8f0 (patch)
tree0a6d1493a515b97bd8b3e8fd6a757ddfeca1526f
parent2151e7a808fd9c1e1a05d3cea493d1b568dd411c (diff)
Work around missing declarations of functions
-rw-r--r--Makefile2
-rw-r--r--check_kernel.c1
-rw-r--r--main.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c5e339f7e..ec606d818 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ TARGET = netdde
SRC_C = main.c machdev.c check_kernel.c
LIBS += $(libmachdevdde_path) $(libmachdev_path) -ldde_linux26.o -ldde_linux26_net $(libddekit_path) -ltrivfs -lpciaccess -lz -lshouldbeinlibc -lports -liohelp -lfshelp -lihash -lpthread $(libslab_path) $(libbpf_path)
-CFLAGS += -g -I$(PKGDIR)/include -I$(BUILDDIR)/include
+CFLAGS += -Wno-error=implicit-function-declaration -g -I$(PKGDIR)/include -I$(BUILDDIR)/include
LDFLAGS += -g
CFLAGS += -DCONFIG_B44_PCI -DCONFIG_8139TOO_8129
diff --git a/check_kernel.c b/check_kernel.c
index 6a285231e..c4af7865d 100644
--- a/check_kernel.c
+++ b/check_kernel.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <error.h>
#include <hurd.h>
#include <mach.h>
diff --git a/main.c b/main.c
index ec764056a..2599c5270 100644
--- a/main.c
+++ b/main.c
@@ -6,6 +6,8 @@
#include <linux/init.h> // initcall()
#include <linux/delay.h> // msleep()
+extern void pthread_exit(void *retval);
+
#include "machdev.h"
#include "check_kernel.h"