From 8e6d0c289f433e3fe844e8986dd4989c9595005b Mon Sep 17 00:00:00 2001 From: "Thomas A." Date: Sat, 14 Sep 2024 15:37:53 -0700 Subject: [PATCH] Update Sources To Use New "" Path --- src/common/debug.h | 2 +- src/linux/machport.c | 2 +- src/linux/platform.h | 17 +++++++++++++++-- src/linux/proc.c | 2 +- src/linux/read.c | 2 +- src/linux/write.c | 2 +- 6 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/common/debug.h b/src/common/debug.h index 8eaae7ae..da0277eb 100644 --- a/src/common/debug.h +++ b/src/common/debug.h @@ -43,7 +43,7 @@ extern int __thread_selfid(); #endif #ifdef DARLING -#include +#include #endif FILE* debug_file(); diff --git a/src/linux/machport.c b/src/linux/machport.c index db5aab04..aab23aad 100644 --- a/src/linux/machport.c +++ b/src/linux/machport.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include "private.h" diff --git a/src/linux/platform.h b/src/linux/platform.h index 8fba541d..8bf7f907 100644 --- a/src/linux/platform.h +++ b/src/linux/platform.h @@ -20,11 +20,20 @@ struct filter; #include +#ifdef DARLING +#include +#include +#else #include -#include #include +#endif +#include #if HAVE_SYS_EVENTFD_H +#ifdef DARLING +# include +#else # include +#endif #else # define eventfd(a,b) syscall(SYS_eventfd, (a), (b)) @@ -36,14 +45,18 @@ struct filter; } #endif #if HAVE_SYS_TIMERFD_H +#ifdef DARLING +#include +#else # include #endif +#endif /* * Get the current thread ID */ #ifdef DARLING -#include +#include # define syscall __linux_syscall #else # define _GNU_SOURCE diff --git a/src/linux/proc.c b/src/linux/proc.c index 39a76da7..c29ee7bd 100644 --- a/src/linux/proc.c +++ b/src/linux/proc.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include "private.h" diff --git a/src/linux/read.c b/src/linux/read.c index f7c98704..8c6e7505 100644 --- a/src/linux/read.c +++ b/src/linux/read.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "private.h" diff --git a/src/linux/write.c b/src/linux/write.c index 2ebc97fb..39e23f3e 100644 --- a/src/linux/write.c +++ b/src/linux/write.c @@ -28,7 +28,7 @@ #include #include -#include +#include #include "private.h"