Update Sources To Use New "<darling/emulation/...>" Path

This commit is contained in:
Thomas A. 2024-09-14 15:37:53 -07:00
parent 7e2ade452a
commit 8e6d0c289f
6 changed files with 20 additions and 7 deletions

View File

@ -43,7 +43,7 @@ extern int __thread_selfid();
#endif
#ifdef DARLING
#include <darling/emulation/simple.h>
#include <darling/emulation/syscall/common/simple.h>
#endif
FILE* debug_file();

View File

@ -29,7 +29,7 @@
#include <unistd.h>
#include <stdint.h>
#include <mach/message.h>
#include <darling/emulation/ext/for-libkqueue.h>
#include <darling/emulation/syscall/other/for_libkqueue.h>
#include <darlingserver/rpc-supplement.h>
#include "private.h"

View File

@ -20,11 +20,20 @@
struct filter;
#include <sys/syscall.h>
#ifdef DARLING
#include <darling/emulation/syscall/linux/ext/sys/epoll.h>
#include <darling/emulation/syscall/linux/ext/sys/inotify.h>
#else
#include <sys/epoll.h>
#include <sys/queue.h>
#include <sys/inotify.h>
#endif
#include <sys/queue.h>
#if HAVE_SYS_EVENTFD_H
#ifdef DARLING
# include <darling/emulation/syscall/linux/ext/sys/eventfd.h>
#else
# include <sys/eventfd.h>
#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 <darling/emulation/syscall/linux/ext/sys/timerfd.h>
#else
# include <sys/timerfd.h>
#endif
#endif
/*
* Get the current thread ID
*/
#ifdef DARLING
#include <darling/emulation/base.h>
#include <darling/emulation/syscall/common/base.h>
# define syscall __linux_syscall
#else
# define _GNU_SOURCE

View File

@ -24,7 +24,7 @@
#include <sys/types.h>
#include <string.h>
#include <unistd.h>
#include <darling/emulation/ext/for-libkqueue.h>
#include <darling/emulation/syscall/other/for_libkqueue.h>
#include <darlingserver/rpc-supplement.h>
#include "private.h"

View File

@ -28,7 +28,7 @@
#include <string.h>
#include <unistd.h>
#include <darling/emulation/ext/for-libkqueue.h>
#include <darling/emulation/syscall/other/for_libkqueue.h>
#include "private.h"

View File

@ -28,7 +28,7 @@
#include <string.h>
#include <unistd.h>
#include <darling/emulation/ext/for-libkqueue.h>
#include <darling/emulation/syscall/other/for_libkqueue.h>
#include "private.h"