Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144388895
D41641.id126799.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
684 B
Referenced Files
None
Subscribers
None
D41641.id126799.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 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
Mon, Feb 9, 4:42 AM (3 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28538938
Default Alt Text
D41641.id126799.diff (684 B)
Attached To
Mode
D41641: timerfd: Namespace pollution adjustments
Attached
Detach File
Event Timeline
Log In to Comment