diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-01-18 09:03:35 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-01-18 09:03:35 +0000 |
commit | 73e0267abd4bdb7409f19e52b4f2f49b14062c1c (patch) | |
tree | 0594345b9cacdf9f005781fad3d74beffb4f79ba /sysutils/lsof | |
parent | 63789a667c2c8650f65f2cb779fe9b9c072c0166 (diff) | |
download | ports-73e0267abd4bdb7409f19e52b4f2f49b14062c1c.tar.gz ports-73e0267abd4bdb7409f19e52b4f2f49b14062c1c.zip |
Notes
Diffstat (limited to 'sysutils/lsof')
-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) */ + |