mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 14:50:31 -04:00
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.
20 lines
482 B
C
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;
|
|
|