opnsense-ports/devel/glib12/files/patch-gutils.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

10 lines
426 B
C

--- gutils.c.orig Wed Aug 9 14:12:31 2000
+++ gutils.c Sat Apr 19 06:09:28 2003
@@ -483,6 +483,7 @@
# ifdef _SC_GETPW_R_SIZE_MAX
/* This reurns the maximum length */
guint bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
+ if (bufsize == UINT_MAX) bufsize = 64; /* XXX Correct for unimpelemented SC */
# else /* _SC_GETPW_R_SIZE_MAX */
guint bufsize = 64;
# endif /* _SC_GETPW_R_SIZE_MAX */