diff -Nurd Eterm-0.9.6.orig/configure Eterm-0.9.6/configure --- Eterm-0.9.6.orig/configure 2011-03-16 02:10:27.000000000 -0400 +++ Eterm-0.9.6/configure 2025-01-19 19:00:22.000000000 -0500 @@ -3827,6 +3827,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) @@ -22423,6 +22424,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include #ifndef HAVE_SNPRINTF #include "src/snprintf.c" diff -Nurd Eterm-0.9.6.orig/src/eterm_utmp.h Eterm-0.9.6/src/eterm_utmp.h --- Eterm-0.9.6.orig/src/eterm_utmp.h 2009-01-06 04:05:36.000000000 -0500 +++ Eterm-0.9.6/src/eterm_utmp.h 2025-01-19 18:58:45.000000000 -0500 @@ -69,7 +69,7 @@ # ifdef HAVE_LASTLOG_H # include # endif -# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DragonFly__) +# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__bsdi__) || defined(__DragonFly__) || defined(__APPLE__) # include # define NEW_BSD_UTMP # endif diff -Nurd Eterm-0.9.6.orig/src/utmp.c Eterm-0.9.6/src/utmp.c --- Eterm-0.9.6.orig/src/utmp.c 2011-03-16 01:16:59.000000000 -0400 +++ Eterm-0.9.6/src/utmp.c 2025-01-19 19:05:34.000000000 -0500 @@ -23,6 +23,8 @@ static const char cvs_ident[] = "$Id: utmp.c 51650 2010-08-26 01:34:13Z lucas $"; +#include + #include "config.h" #include "feature.h"