Page MenuHomeFreeBSD

D41641.diff
No OneTemporary

D41641.diff

diff --git a/sys/sys/timerfd.h b/sys/sys/timerfd.h
--- a/sys/sys/timerfd.h
+++ b/sys/sys/timerfd.h
@@ -30,8 +30,12 @@
#include <sys/types.h>
#include <sys/fcntl.h>
-#include <sys/proc.h>
-#include <sys/timespec.h>
+/*
+ * We only need <sys/timespec.h>, but glibc pollutes the namespace
+ * with <time.h>. This pollution is expected by most programs, so
+ * reproduce it by including <sys/time.h> here.
+ */
+#include <sys/time.h>
typedef uint64_t timerfd_t;
@@ -54,6 +58,8 @@
#else /* _KERNEL */
+struct thread;
+
int kern_timerfd_create(struct thread *td, int clockid, int flags);
int kern_timerfd_gettime(struct thread *td, int fd,
struct itimerspec *curr_value);

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 6:16 PM (9 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16776555
Default Alt Text
D41641.diff (688 B)

Event Timeline