---- rpm-4.4.1/configure.ac.orig 2005-07-15 20:06:31.000000000 +0000
-+++ rpm-4.4.1/configure.ac 2005-07-15 20:22:45.000000000 +0000
-@@ -619,7 +619,6 @@
- dnl popt w float/double needs.
- AC_CHECK_HEADERS(float.h)
-
--AC_CHECK_HEADERS(glob.h)
-
- dnl statfs portability fiddles.
- dnl
-@@ -843,10 +842,10 @@
- dnl XXX Glob is "fixed" in glibc-2.3.3-61, but the cost is that
- dnl dangling symlinks are no longer globbed. Always use the internal glob.
- dnl
--#AC_ARG_WITH(glob, [ --with-glob use the internal GNU glob ],
--# [rpm_cv_glob=yes],
--# [AC_CHECK_FUNCS(glob, rpm_cv_glob=no, rpm_cv_glob=yes)])
--#
-+AC_ARG_WITH(glob, [ --with-glob use the internal GNU glob ],
-+ [rpm_cv_glob=yes],
-+ [AC_CHECK_FUNCS(glob, rpm_cv_glob=no, rpm_cv_glob=yes)])
+--- rpm-4.5/rpmio/rpmrpc.c~ 2010-12-19 14:19:57.678043380 +0100
++++ rpm-4.5/rpmio/rpmrpc.c 2010-12-19 14:20:39.353812967 +0100
+@@ -1711,6 +1711,17 @@
+ if (_rpmio_debug)
+ fprintf(stderr, "*** Glob(%s,0x%x,%p,%p)\n", pattern, (unsigned)flags, (void *)errfunc, pglob);
+ /*@=castfcnptr@*/
++
++ /* same as upstream glob with difference that gl_stat is Lstat now */
++ pglob->gl_closedir = closedir;
++ pglob->gl_readdir = readdir;
++ pglob->gl_opendir = opendir;
++ pglob->gl_lstat = Lstat;
++ pglob->gl_stat = Lstat;