aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-01-18 17:03:35 +0800
committermiwi <miwi@FreeBSD.org>2010-01-18 17:03:35 +0800
commit83c8479aa34d17b3a8f5383d288226fbee7b43c3 (patch)
treeac62726e7d0c9e0ce7344f172a62a660225bc73c /sysutils
parent8818a436dd79b3a932f8fc33787f6c6cf2839792 (diff)
downloadfreebsd-ports-gnome-83c8479aa34d17b3a8f5383d288226fbee7b43c3.tar.gz
freebsd-ports-gnome-83c8479aa34d17b3a8f5383d288226fbee7b43c3.tar.zst
freebsd-ports-gnome-83c8479aa34d17b3a8f5383d288226fbee7b43c3.zip
- Fix build on HEAD
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lsof/files/patch-utmpx.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/lsof/files/patch-utmpx.h b/sysutils/lsof/files/patch-utmpx.h
new file mode 100644
index 000000000000..60908440d772
--- /dev/null
+++ b/sysutils/lsof/files/patch-utmpx.h
@@ -0,0 +1,28 @@
+--- Configure
++++ Configure
+@@ -2156,6 +2156,10 @@
+ then
+ LSOF_CFGF="$LSOF_CFGF -DHASIPv6"
+ fi # }
++ if test -r ${LSOF_INCLUDE}/utmpx.h # {
++ then
++ LSOF_CFGF="$LSOF_CFGF -DHASUTMPX"
++ fi # }
+ LSOF_DIALECT_DIR=freebsd
+ ;;
+
+--- lsof.h
++++ lsof.h
+@@ -267,10 +267,11 @@
+ # if !defined(LOGINML)
+ # if defined(HASUTMPX)
+ static struct utmpx dummy_utmp; /* to get login name length */
++#define LOGINML sizeof(dummy_utmp.ut_user)
+ # else /* !defined(HASUTMPX) */
+ static struct utmp dummy_utmp; /* to get login name length */
+-# endif /* defined(HASUTMPX) */
+ #define LOGINML sizeof(dummy_utmp.ut_name)
++# endif /* defined(HASUTMPX) */
+ /* login name length */
+ # endif /* !defined(LOGINML) */
+