Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110672731
D41641.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
D41641.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D41641: timerfd: Namespace pollution adjustments
Attached
Detach File
Event Timeline
Log In to Comment