summaryrefslogtreecommitdiff
path: root/devel/glib/patches/patch-af
blob: 2247d60a1a93f07c2e4a539f63b1b8ea0315b2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-af,v 1.7 2006/07/11 09:35:13 rillig Exp $

--- gutils.c.orig	2000-08-09 20:12:31.000000000 +0200
+++ gutils.c	2006-07-11 11:30:51.000000000 +0200
@@ -487,6 +487,8 @@ g_get_any_init (void)
         guint bufsize = 64;
 #    endif /* _SC_GETPW_R_SIZE_MAX */
         gint error;
+
+        if (bufsize == (guint) -1) bufsize = 64; /* XXX Correct for unimpelemented SC */
 	
         do
           {