[PATCH] glob.h (i686-pc-mingw32) b/c wrong function prototype of function 'glob'

Jannick thirdedition@gmx.net
Sat Jul 1 13:44:00 GMT 2017

Attached a tiny patch to i686-pc-mingw32' glob.h which remedies a function
prototype definition error thrown upon compilation.

I am hoping that this is the correct one of cygwin's mail-lists, please
advise otherwise. 


-06-25_142140.bak	Tue Jul 16 00:34:26 2013
+++ C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/glob.h	Sun
Jun 25 14:21:40 2017
@@ -142,7 +142,8 @@
 #define GLOB_INLINE  static __inline__ __attribute__((__always_inline__))
 GLOB_INLINE int glob
-( const char *__pattern, int __flags, int (*__errfunc)(), glob_t *__data )
+( const char *__pattern, int __flags, int (*__errfunc) (const char *, int),
glob_t *__data )
 { return __mingw_glob( __pattern, __flags, __errfunc, __data ); }
 GLOB_INLINE void globfree( glob_t *__data )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glob.h.patch
Type: application/octet-stream
Size: 618 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170701/135fa9fc/attachment.obj>
-------------- next part --------------

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list