From 8ec260e9cad36957065df22a45ec7a256b09de8a Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 2 May 2016 19:10:40 +0000 Subject: Fix build on Darwin. --- misc/screen/distinfo | 4 ++-- misc/screen/patches/patch-al | 28 ++++++++++++++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/misc/screen/distinfo b/misc/screen/distinfo index ff4dcda7528..8cb0da163f0 100644 --- a/misc/screen/distinfo +++ b/misc/screen/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.39 2015/11/03 23:49:52 agc Exp $ +$NetBSD: distinfo,v 1.40 2016/05/02 19:10:40 jperkin Exp $ SHA1 (screen-4.3.1.tar.gz) = a524761504e28480517e338b20c852f2ab100c93 RMD160 (screen-4.3.1.tar.gz) = 9de183f86e36b211d56c35e58598728f332faec9 @@ -10,7 +10,7 @@ SHA1 (patch-ae) = 8792f7877c0a29701d7d0643e93360813ed7db0f SHA1 (patch-ai) = db9f23d31763e44d788af3a44e4ae91b84c87deb SHA1 (patch-aj) = e9996135629085c44867b9264648b2b507e91f98 SHA1 (patch-ak) = 31982e692cabf25be31bd1758fe1aeb1a4787629 -SHA1 (patch-al) = f49e179dd814c826e283949c40497067e56398c4 +SHA1 (patch-al) = 1e5a5be52b9f323f10841df74e25a3d2ba6996ea SHA1 (patch-am) = a721e311e7dde7938de0e9546a7892bfd104ebd1 SHA1 (patch-an) = bda6c65148410a6c9a13afd8ad34f93e33731552 SHA1 (patch-ansi.c) = 4dc3d46b99f99257e341099781a3eda680c6d1c3 diff --git a/misc/screen/patches/patch-al b/misc/screen/patches/patch-al index 81b672614bd..8246bde48dd 100644 --- a/misc/screen/patches/patch-al +++ b/misc/screen/patches/patch-al @@ -1,10 +1,10 @@ -$NetBSD: patch-al,v 1.4 2015/02/13 04:44:40 rodent Exp $ +$NetBSD: patch-al,v 1.5 2016/05/02 19:10:40 jperkin Exp $ Make extra calls to remove utmp entries when utmpx is used. For non-login entries we only update utmpx, as it stores more information, and utilities are reading both. ---- utmp.c.orig 2014-04-26 16:22:09.000000000 +0000 +--- utmp.c.orig 2015-06-28 21:37:40.000000000 +0000 +++ utmp.c @@ -48,6 +48,12 @@ extern char *LoginName; extern int real_uid, eff_uid; @@ -39,3 +39,27 @@ more information, and utilities are reading both. if (utmpok && D_loginslot != (slot_t)0 && D_loginslot != (slot_t)-1) { debug1(" logging you in again (slot %#x)\n", (int)D_loginslot); +@@ -631,7 +643,11 @@ int pid; + /* must use temp variable because of NetBSD/sparc64, where + * ut_xtime is long(64) but time_t is int(32) */ + (void)time(&now); ++#ifdef __APPLE__ ++ u->ut_time = now; ++#else + u->ut_tv.tv_sec = now; ++#endif + } + + static slot_t +@@ -743,7 +759,11 @@ int pid; + strncpy(u->ut_line, line, sizeof(u->ut_line)); + strncpy(u->ut_name, user, sizeof(u->ut_name)); + (void)time(&now); ++#ifdef __APPLE__ ++ u->ut_time = now; ++#else + u->ut_tv.tv_sec = now; ++#endif + } + + static slot_t -- cgit v1.2.3