Skip to content

Commit

Permalink
[freebsd] fix FreeBSD < 14
Browse files Browse the repository at this point in the history
from mjguzik
  • Loading branch information
lrosenman committed Sep 16, 2022
1 parent 55374d7 commit d5ce7cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 00DIST
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
4.95.0 April 28, 2022
4.96.0 September 16, 2022
4.96.1 September 16, 2022
4.96.2 September 16, 2022



Expand Down Expand Up @@ -5410,5 +5411,7 @@ July 14, 2018

[FreeBSD] Unconditionally define HASKQUEUE (mjguzik)

[FreeBSD] fix FreeBSD < 14

The lsof-org team at GitHub
September 16, 2022
4 changes: 4 additions & 0 deletions dialects/freebsd/dlsof.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,15 @@ int open(const char *, int, ...);
#define vasprintf vasprintf_kernel_lsof
#define uintfptr_t int
#define _SYS_LIBKERN_H_
#if __FreeBSD_version > 1400066
#define tick_sbt 1
#define pause kernel_pause
#include <sys/file.h>
#undef pause
#undef tick_sbt
#else
#include <sys/file.h>
#endif

/*
* Attempt to remove the circumventions.
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.ds VN 4.96.1
.ds VN 4.96.2

0 comments on commit d5ce7cc

Please sign in to comment.