freebsd-ports/net-mgmt/ng_ipacct/files/patch-ipacctctl
Sergey Skvortsov 1edf8fc564 Unbreak build for RELENG_8 and later.
PR:		ports/145176
Submitted by:	Eugene Grosbein <eugen@grosbein.pp.ru>
2010-06-07 15:46:28 +00:00

15 lines
362 B
Text

--- ipacctctl/ipacctctl.c.orig 2010-03-29 23:36:30.000000000 +0700
+++ ipacctctl/ipacctctl.c 2010-03-29 23:37:38.000000000 +0700
@@ -53,6 +53,10 @@
#include "../ng_ipacct/ng_ipacct.h"
+#ifndef NG_PATHLEN
+#define NG_PATHLEN (NG_PATHSIZ - 1)
+#endif
+
#define TIME_FMT "%Y/%m/%d %H:%M:%S" /* used in strftime() */
#define IN_HOOK 0
#define OUT_HOOK 1