This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

declare hsearch_r


Cygwin already exports newlib's hsearch_r, but failed to declare it in
cygwin's replacement <search.h>.  This leads to unnecessary warnings when
compiling cygwin, at the point where newlib is trying to compile uses of
hsearch_r.

2007-05-21  Eric Blake  <ebb9@byu.net>

	* include/search.h (hsearch_r): Provide declaration.

Index: include/search.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/search.h,v
retrieving revision 1.2
diff -u -p -r1.2 search.h
--- include/search.h	27 Mar 2005 02:31:33 -0000	1.2
+++ include/search.h	21 May 2007 12:57:45 -0000
@@ -57,6 +57,7 @@ void  hdestroy (void);
 ENTRY *hsearch (ENTRY, ACTION);
 int hcreate_r (size_t, struct hsearch_data *);
 void hdestroy_r (struct hsearch_data *);
+int hsearch_r(ENTRY, ACTION, ENTRY **, struct hsearch_data *);
 void *tdelete (const void * __restrict, void ** __restrict,
 	       int (*) (const void *, const void *));
 void tdestroy (void *, void (*)(void *));

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]