summaryrefslogtreecommitdiff
path: root/sysutils/lsof/files/patch-dialects_freebsd_dlsof.h
blob: 3f8973aa00fb7fd09681c74bd3750e0aed21deae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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>