diff options
author | miwi <miwi@FreeBSD.org> | 2010-01-18 17:03:35 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2010-01-18 17:03:35 +0800 |
commit | 83c8479aa34d17b3a8f5383d288226fbee7b43c3 (patch) | |
tree | ac62726e7d0c9e0ce7344f172a62a660225bc73c /sysutils | |
parent | 8818a436dd79b3a932f8fc33787f6c6cf2839792 (diff) | |
download | freebsd-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.h | 28 |
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) */ + |