summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netgraph.h
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2008-06-24 18:49:49 +0000
committergnn <gnn@FreeBSD.org>2008-06-24 18:49:49 +0000
commit2b9abdf860f5e40d855986900e879b2e2567b1a1 (patch)
tree07796c1d9d31c87fb87e8a2ba426c80ca6dddd67 /sys/netgraph/netgraph.h
parentfae39e85428b8718f23a31a1191ad78d44674f36 (diff)
downloadFreeBSD-src-2b9abdf860f5e40d855986900e879b2e2567b1a1.zip
FreeBSD-src-2b9abdf860f5e40d855986900e879b2e2567b1a1.tar.gz
Make it simpler to build netgraph modules outside of the kernel source
tree. This change follows similar ones in the device tree. MFC after: 2 weeks
Diffstat (limited to 'sys/netgraph/netgraph.h')
-rw-r--r--sys/netgraph/netgraph.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netgraph/netgraph.h b/sys/netgraph/netgraph.h
index e327920..70472d7 100644
--- a/sys/netgraph/netgraph.h
+++ b/sys/netgraph/netgraph.h
@@ -54,7 +54,9 @@
#include <sys/module.h>
#include <sys/mutex.h>
+#ifdef HAVE_KERNEL_OPTION_HEADERS
#include "opt_netgraph.h"
+#endif
/* debugging options */
#define NG_SEPARATE_MALLOC /* make modules use their own malloc types */
OpenPOWER on IntegriCloud