Skip to content

Commit

Permalink
gdm: fix build on old systems
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 27, 2024
1 parent 3285fda commit e2a5bf8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gnome/gdm/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ use_parallel_build no

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

post-patch {
xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
Expand Down
14 changes: 14 additions & 0 deletions gnome/gdm/files/patch-daemon-gdm-xdmcp-display-factory.c.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- daemon/gdm-xdmcp-display-factory.c 2015-09-19 03:33:26.000000000 +0800
+++ daemon/gdm-xdmcp-display-factory.c 2024-08-27 19:04:22.000000000 +0800
@@ -374,9 +374,11 @@
if (ai->ai_flags & AI_NUMERICHOST) {
g_string_append (str, "numhost ");
}
+#ifdef AI_NUMERICSERV
if (ai->ai_flags & AI_NUMERICSERV) {
g_string_append (str, "numserv ");
}
+#endif
#ifdef AI_V4MAPPEP
if (ai->ai_flags & AI_V4MAPPED) {
g_string_append (str, "v4mapped ");

0 comments on commit e2a5bf8

Please sign in to comment.