--- daemon/gdm-session-record.c 2015-09-19 03:33:26.000000000 +0800 +++ daemon/gdm-session-record.c 2024-08-27 19:42:42.000000000 +0800 @@ -25,6 +25,10 @@ #include #include +#ifdef __APPLE__ +#include +#endif + #if defined(HAVE_UTMPX_H) #include #endif