summaryrefslogtreecommitdiff
path: root/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/lsof/files/patch-dialects_freebsd_dlsof.h')
-rw-r--r--sysutils/lsof/files/patch-dialects_freebsd_dlsof.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h b/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
new file mode 100644
index 000000000000..3f8973aa00fb
--- /dev/null
+++ b/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
@@ -0,0 +1,16 @@
+--- dialects/freebsd/dlsof.h.orig 2017-09-10 14:02:39 UTC
++++ dialects/freebsd/dlsof.h
+@@ -486,6 +486,13 @@ struct vop_advlock_args { int dummy; }; /* to pacify l
+ # endif /* FREEBSDV<5000 */
+ # endif /* FREEBSDV>=2020 */
+
++/*
++ * Inclusion of kernel headers with _KERNEL specified causes a conflict with
++ * userspace. bzero is a macro, but is redefined to be a function in string.h
++ * Work around by just undefing.
++ */
++#undef bzero
++
+ #include <string.h>
+
+