From a1ffd2d114f5efd4be474080481916011693e14a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 11 Nov 2008 11:03:58 +0000 Subject: minios: add a barebone net/if.h net/if.h is a standard header but unfortunately lwip doesn't provide it for any target but linux. Therefore I am adding a net/if.h, with an empty implementation of the declared functions. Signed-off-by: Stefano Stabellini --- extras/mini-os/lib/sys.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extras/mini-os/lib') diff --git a/extras/mini-os/lib/sys.c b/extras/mini-os/lib/sys.c index 34e4fb6666..a07692b883 100644 --- a/extras/mini-os/lib/sys.c +++ b/extras/mini-os/lib/sys.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -1324,6 +1325,12 @@ unsupported_function(int, tcsetattr, -1); unsupported_function(int, tcgetattr, 0); unsupported_function(int, poll, -1); +/* net/if.h */ +unsupported_function_log(unsigned int, if_nametoindex, -1); +unsupported_function_log(char *, if_indextoname, (char *) NULL); +unsupported_function_log(struct if_nameindex *, if_nameindex, (struct if_nameindex *) NULL); +unsupported_function_crash(if_freenameindex); + /* Linuxish abi for the Caml runtime, don't support */ unsupported_function_log(struct dirent *, readdir64, NULL); unsupported_function_log(int, getrusage, -1); -- cgit v1.2.3