head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2026.04.24.08.02.58; author mrg; state Exp; branches; next 1.1; commitid 09r04zJrPjupzbDG; 1.1 date 2026.04.15.08.33.00; author adam; state Exp; branches; next ; commitid tLlMEYosCNON12CG; desc @@ 1.2 log @fix build on netbsd-9 which doesn't have F_GETPATH. use the same method eg, Hurd does (just fail) instead of not compiling. should fix PR#60203 @ text @$NetBSD: patch-glib_glib-unix.c,v 1.1 2026/04/15 08:33:00 adam Exp $ Fix build on NetBSD. --- glib/glib-unix.c.orig 2026-03-16 06:53:50.000000000 -0700 +++ glib/glib-unix.c 2026-04-24 00:41:49.040268939 -0700 @@@@ -49,6 +49,7 @@@@ #include #include /* for fdwalk */ #include +#include /* for MAXPATHLEN */ #include #include #include @@@@ -983,6 +984,7 @@@@ g_unix_fd_query_path (int fd, return g_strdup (kf.kf_path); #elif defined (__APPLE__) || defined (__NetBSD__) || defined (__OpenBSD__) +# ifdef F_GETPATH char file_path[MAXPATHLEN] = {0}; if (fcntl (fd, F_GETPATH, file_path) < 0) @@@@ -996,6 +998,11 @@@@ g_unix_fd_query_path (int fd, } return g_strdup (file_path); +# else + g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_NOSYS, + "g_unix_fd_query_path() not supported"); + return NULL; +# endif #elif defined (__GNU__) /* * Hurd allows to open("/dev/fd/%u") to open the very same fd, but it's not @ 1.1 log @glib2 glib2-tools gdbus-codegen: updated to 2.88.0 Overview of changes in GLib 2.88.0, 2026-03-16 * Bugs fixed: - gslice: Factor out a size helper macro and stop using MAX in a public header @ text @d1 1 a1 1 $NetBSD$ d5 2 a6 2 --- glib/glib-unix.c.orig 2026-04-15 08:19:07.150066541 +0000 +++ glib/glib-unix.c d15 20 @