summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/netipsec/ipsec.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/netipsec/ipsec.h')
-rw-r--r--freebsd/sys/netipsec/ipsec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/sys/netipsec/ipsec.h b/freebsd/sys/netipsec/ipsec.h
index 7653e4d4..0522b7e7 100644
--- a/freebsd/sys/netipsec/ipsec.h
+++ b/freebsd/sys/netipsec/ipsec.h
@@ -299,7 +299,13 @@ VNET_DECLARE(int, natt_cksum_policy);
#define ipseclog(x) do { if (V_ipsec_debug) log x; } while (0)
/* for openbsd compatibility */
+#ifdef IPSEC_DEBUG
+#define IPSEC_DEBUG_DECLARE(x) x
#define DPRINTF(x) do { if (V_ipsec_debug) printf x; } while (0)
+#else
+#define IPSEC_DEBUG_DECLARE(x)
+#define DPRINTF(x)
+#endif
struct inpcb;
struct m_tag;