aboutsummaryrefslogtreecommitdiff
path: root/comms/hylafax/files/patch-GettySysV.c++
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2010-02-05 12:15:24 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2010-02-05 12:15:24 +0000
commit8313125fa5a0b4e2044cbefdf6b78225660e53f4 (patch)
tree209dac89a92e10a3b7f43b99fccbf1317d4103d4 /comms/hylafax/files/patch-GettySysV.c++
parent041a0cd93612289b76e479d9886b3055f17cf4d5 (diff)
downloadports-8313125fa5a0b4e2044cbefdf6b78225660e53f4.tar.gz
ports-8313125fa5a0b4e2044cbefdf6b78225660e53f4.zip
- fix build with utmpx
Submitted by: Ed Schouten
Notes
Notes: svn path=/head/; revision=249288
Diffstat (limited to 'comms/hylafax/files/patch-GettySysV.c++')
-rw-r--r--comms/hylafax/files/patch-GettySysV.c++31
1 files changed, 31 insertions, 0 deletions
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
+ }
+
+ /*