diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-02-05 20:15:24 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-02-05 20:15:24 +0800 |
commit | acbd3c1a3929c85cd04b43b9fa6064b7247d8ba5 (patch) | |
tree | ea25854c4ba0df526c65d57a369e8640a5f03ce0 /comms | |
parent | 417c6c4ed6314cab19a5aa75a5eaa2e5e8369d5e (diff) | |
download | freebsd-ports-gnome-acbd3c1a3929c85cd04b43b9fa6064b7247d8ba5.tar.gz freebsd-ports-gnome-acbd3c1a3929c85cd04b43b9fa6064b7247d8ba5.tar.zst freebsd-ports-gnome-acbd3c1a3929c85cd04b43b9fa6064b7247d8ba5.zip |
- fix build with utmpx
Submitted by: Ed Schouten
Diffstat (limited to 'comms')
-rw-r--r-- | comms/hylafax/Makefile | 4 | ||||
-rw-r--r-- | comms/hylafax/files/patch-GettySysV.c++ | 31 |
2 files changed, 35 insertions, 0 deletions
diff --git a/comms/hylafax/Makefile b/comms/hylafax/Makefile index 211d830a25b1..9f067bc69a0b 100644 --- a/comms/hylafax/Makefile +++ b/comms/hylafax/Makefile @@ -131,4 +131,8 @@ post-install: .endif @${CAT} ${PKGMESSAGE} +.if ${OSVERSION} >= 900007 +CONFIGURE_ARGS+= GETTY=SysV +.endif + .include <bsd.port.post.mk> diff --git a/comms/hylafax/files/patch-GettySysV.c++ b/comms/hylafax/files/patch-GettySysV.c++ new file mode 100644 index 000000000000..85adc8498850 --- /dev/null +++ b/comms/hylafax/files/patch-GettySysV.c++ @@ -0,0 +1,31 @@ +--- faxd/GettySysV.c++.orig 2009-12-28 20:05:40.000000000 +0100 ++++ faxd/GettySysV.c++ 2010-01-26 22:44:19.000000000 +0100 +@@ -49,8 +49,12 @@ + #define ut_time ut_tv.tv_sec + #endif + #else ++#ifdef __FreeBSD__ ++#define ut_time ut_tv.tv_sec ++#else + #define ut_time ut_xtime + #endif ++#endif + + #define getutent getutxent + #define getutid getutxid +@@ -172,6 +176,7 @@ + void + SysVGetty::writeWtmp(utmp* ut) + { ++#if !defined(__FreeBSD__) + // append record of login to wtmp file + #if HAS_UTMPX + updwtmpx(_PATH_WTMPX, ut); +@@ -182,6 +187,7 @@ + Sys::close(fd); + } + #endif ++#endif + } + + /* |