Skip to content

Commit

Permalink
[FreeBSD] Fix kqueue compat for releases < 14 (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjguzik authored Sep 16, 2022
1 parent d5ce7cc commit edb933a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dialects/freebsd/dlsof.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@ int open(const char *, int, ...);

#define HASKQUEUE /* has the kqueue file type */

#if __FreeBSD_version < 1400066
#define _KERNEL
#include <sys/eventvar.h>
#undef _KERNEL
# endif

struct vop_advlock_args { int dummy; }; /* to pacify lf_advlock() prototype */
#undef MALLOC_DECLARE
#define MALLOC_DECLARE(type) extern struct malloc_type type[1]
Expand Down

0 comments on commit edb933a

Please sign in to comment.