Skip to content

Commit

Permalink
gdm: add a missing header to fix build on new macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 27, 2024
1 parent e2a5bf8 commit e896121
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions gnome/gdm/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ use_parallel_build no

patchfiles patch-configure.ac.diff \
patch-daemon.diff \
patch-daemon-gdm-session-record.c.diff \
patch-daemon-gdm-session-worker.c.diff \
patch-daemon-gdm-xdmcp-display-factory.c.diff

Expand Down
13 changes: 13 additions & 0 deletions gnome/gdm/files/patch-daemon-gdm-session-record.c.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- 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 <string.h>
#include <unistd.h>

+#ifdef __APPLE__
+#include <util.h>
+#endif
+
#if defined(HAVE_UTMPX_H)
#include <utmpx.h>
#endif

0 comments on commit e896121

Please sign in to comment.