From be071072115059726846163c6f28f62dc01573ec Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 14 Jul 2023 10:54:38 +0200 Subject: treewide: consolidate platform specific code in platform.c Get rid of most __APPLE__ guards by introducing a central platform.c unit providing drop-in replacements for missing APIs. Also move system signal definitions into the new platform file to be able to share them with the upcoming debug library. Signed-off-by: Jo-Philipp Wich --- lib/fs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/fs.c') diff --git a/lib/fs.c b/lib/fs.c index e00f7fa..0f03ad4 100644 --- a/lib/fs.c +++ b/lib/fs.c @@ -60,11 +60,8 @@ #include #include -#ifndef __APPLE__ -#include /* major(), minor() */ -#endif - #include "ucode/module.h" +#include "ucode/platform.h" #define err_return(err) do { last_error = err; return NULL; } while(0) -- cgit v1.2.3