delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/07/01/09:44:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type; q=dns; s=default; b=THmXCOiknunzuHPxjnAZLyjTDPvY6
AxFDazxknepwzOoDE87A4Muck8hIT0DOXMVO2wjFqO3DYYTFVQl9rRsB6f2hYFg0
qCXDst+39r5nSvQBYYBhVSjf4jub5XJvRoBFiB0zz5KgIlhffB7hH+l9pi/B9KD+
0sgP27yKYPI8w0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type; s=default; bh=xCDo8E8uFzLz7ZFqS4NTMygK3sY=; b=rmd
7ynBU2HAp4H0tNj0RsDQkcecJvwG6bja9uYLx2tPwxkTNJZNg66LIP9IX5E/HPrt
5c4+CAtjP6M4VM/88Wtwl1PXL9oDeV7mxKnp/ayCMcl72ucpLNhO6HeApURMP5Vd
O47TedDSVbvFtnCCObphjOJFNrFfbfHdXWpEapLQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=remedies, Hx-languages-length:927, H*c:NHxtPHrt, H*UA:Outlook
X-HELO: mout.gmx.net
From: "Jannick" <thirdedition AT gmx DOT net>
To: <cygwin AT cygwin DOT com>
Subject: [PATCH] glob.h (i686-pc-mingw32) b/c wrong function prototype of function 'glob'
Date: Sat, 1 Jul 2017 15:44:13 +0200
Message-ID: <009501d2f270$209bb520$61d31f60$@gmx.net>
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:0Dc6yWWhX0o=:FjbyVKbSZrBp0WnNMjDFvt mARpdclC9O6f9YPCu9oj2z3vnCMH4SOFZLUBcO+IVY5Gx+5l/hfGdwIhIM+mhv/b4wW5opXBD noOZxq8zVOnW3TIzFbj74rRq3l7hlmzMCdZLeF+W9uQCqG5fPTbP5hR7rF/cH7G/BzBupFzll jDL4TPBoGUqC0Kgcd0sWuVvT5cu5yhzRo8+e/P4+NjjDTJQwcv4Y/TK541VqfGMErxNHONbd/ 3+9cAZbT30FSlcUxBed6CtRS7GfL7Rby6NHWIGh+G00CX2a7G7FKM7EyG8RQx2EYS3ceooe+q ve2EGaRJX0vQFGzoSdekAuB4ptGce1e3ZgQLW/oQ+iqBGZCBPIJGj5ifxzPiJ2BVzST0y4iET tKNk4SptukBJoB/1q7qbcbkHWzxONKXled2T4OCnvyXASBmIwU6IMHEI5PR0SkBbCOKPuDJ1R ImNCd6C+8YDze4sUZSLfxCOQEWsFXcWokPUaV0ecfqPfSIZ+P9839vCEO+3+azPYrSO70zP9q rLF104asULiP8uYcCA6JuzGJObb4QhtENQNWUHsCe76TIwIctQCgJ3P6Rq0OMA/h4VPZafQBI jUdJNIewcXiljm43vT5DXX2Q/YU313mob/l4QTooww7yPbUFHzyUO2HO8YcbBFOS+hlFeowby szU8MldBzv9HiA5xFNUIlhX9CL/JbrsK9j4JU72D3wf3CSB6OFq+8prA/vzKk0HQfeUjOb+xh NFP/jSTs2eNtnTNBlO78JYyZdcYmNCv2EXA5bDkjd9+I8Cap9LgkYGa5+X0=
X-IsSubscribed: yes

------=_NextPart_000_0096_01D2F280.E426CF10
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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. 

Thanks,
J.

---
C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/nppBackup/glob.h.2017
-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 )

------=_NextPart_000_0096_01D2F280.E426CF10
Content-Type: application/octet-stream;
	name="glob.h.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="glob.h.patch"

--- C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/nppBackup/glob.h=
.2017-06-25_142140.bak	Tue Jul 16 00:34:26 2013=0A=
+++ C:/cygwin32/usr/i686-pc-mingw32/sys-root/mingw/include/glob.h	Sun Jun 2=
5 14:21:40 2017=0A=
@@ -142,7 +142,8 @@=0A=
 #define GLOB_INLINE  static __inline__ __attribute__((__always_inline__))=
=0A=
=20=0A=
 GLOB_INLINE int glob=0A=
-( const char *__pattern, int __flags, int (*__errfunc)(), glob_t *__data )=
=0A=
+( const char *__pattern, int __flags, int (*__errfunc) (const char *, int)=
, glob_t *__data )=0A=
 { return __mingw_glob( __pattern, __flags, __errfunc, __data ); }=0A=
=20=0A=
 GLOB_INLINE void globfree( glob_t *__data )=0A=


------=_NextPart_000_0096_01D2F280.E426CF10
Content-Type: text/plain; charset=us-ascii


--
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
------=_NextPart_000_0096_01D2F280.E426CF10--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019