ports/sysutils/libutempter/files/patch-utempter.c
John Marino cac39bcadf sysutils/libutempter: Improve IGNORE condition for DragonFly
Qualify the OSVERSION check with an OPSYS check for FreeBSD so that the
check doesn't break the port on DragonFly.  Also import a local patch
from dports for DragonFly.
2013-10-06 23:43:15 +00:00

20 lines
482 B
C

--- utempter.c.orig 2007-02-19 12:14:08.000000000 +0000
+++ utempter.c
@@ -36,7 +36,7 @@
#ifdef __GLIBC__
# include <pty.h>
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
# include <libutil.h>
#else
# error Unsupported platform
@@ -157,7 +157,7 @@ write_uwtmp_record(const char *user, con
(void) updwtmp(_PATH_WTMP, &ut);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
ut.ut_time = tv.tv_sec;