File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 118118
119119// FreeBSD's kevent does not support those
120120# ifndef NOTE_ABSOLUTE
121- # define NOTE_ABSOLUTE 0
121+ # ifdef NOTE_ABSTIME
122+ # define NOTE_ABSOLUTE NOTE_ABSTIME
123+ # else
124+ # define NOTE_ABSOLUTE 0
125+ # endif
122126# endif
123127# ifndef NOTE_EXITSTATUS
124128# define NOTE_EXITSTATUS 0
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ DISPATCH_STATIC_GLOBAL(struct dispatch_muxnote_bucket_s _dispatch_sources[DSL_HA
5050#define DISPATCH_NOTE_CLOCK_WALL NOTE_NSECONDS | NOTE_MACH_CONTINUOUS_TIME
5151#define DISPATCH_NOTE_CLOCK_MONOTONIC NOTE_MACHTIME | NOTE_MACH_CONTINUOUS_TIME
5252#define DISPATCH_NOTE_CLOCK_UPTIME NOTE_MACHTIME
53+ #elif __FreeBSD__
54+ #define DISPATCH_NOTE_CLOCK_WALL NOTE_NSECONDS
55+ #define DISPATCH_NOTE_CLOCK_MONOTONIC NOTE_NSECONDS
56+ #define DISPATCH_NOTE_CLOCK_UPTIME NOTE_NSECONDS
5357#else
5458#define DISPATCH_NOTE_CLOCK_WALL 0
5559#define DISPATCH_NOTE_CLOCK_MONOTONIC 0
You can’t perform that action at this time.
0 commit comments