From 5ff042914700b50f8e5d58648a8cec9a76fa3540 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 Oct 2024 16:26:26 -0700 Subject: [PATCH] glib-unix: Fix build of safe_fdwalk() on Solaris The refactoring done by commit 168fd4f2b3dbaa100ace1264462ccc6fc33ea39c lost the definition of the open_max variable used in the Solaris ifdefs. Signed-off-by: Alan Coopersmith --- glib/glib-unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/glib-unix.c b/glib/glib-unix.c index 932c230d6..6b34234b8 100644 --- a/glib/glib-unix.c +++ b/glib/glib-unix.c @@ -699,6 +699,7 @@ safe_fdwalk (int (*cb)(void *data, int fd), void *data) * fcntl(fd, F_PREVFD) * - return highest allocated file descriptor < fd. */ + gint open_max; gint fd; gint res = 0;