aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/net-snmp
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2010-02-16 14:48:08 +0800
committerpgollucci <pgollucci@FreeBSD.org>2010-02-16 14:48:08 +0800
commit09b1264b8e74ab319e260965b5c4973ba876198f (patch)
tree3445dcd947e3555117198dd5cf72c5c2c5811ec9 /net-mgmt/net-snmp
parentf115b2e7f072301684207a0b9bc841ee34897dda (diff)
downloadfreebsd-ports-gnome-09b1264b8e74ab319e260965b5c4973ba876198f.tar.gz
freebsd-ports-gnome-09b1264b8e74ab319e260965b5c4973ba876198f.tar.zst
freebsd-ports-gnome-09b1264b8e74ab319e260965b5c4973ba876198f.zip
- Fix for utmpx on 9-current
Feature safe: yes
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r--net-mgmt/net-snmp/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/Makefile b/net-mgmt/net-snmp/Makefile
index b1e3df7d3f20..68e76ae3d340 100644
--- a/net-mgmt/net-snmp/Makefile
+++ b/net-mgmt/net-snmp/Makefile
@@ -250,6 +250,9 @@ post-patch:
@${REINPLACE_CMD} ${SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/local/${filename}
.endfor
+.if ${OSVERSION} >= 900007
+ ${REINPLACE_CMD} -e 's!utmp_p->ut_name!utmp_p->ut_user!' ${WRKSRC}/agent/mibgroup/host/hr_system.c
+.endif
post-configure:
@${FIND} ${WRKSRC} -name Makefile | \