hash.c: #include <reent.h>

Message ID 20190726141949.57669-1-kbrown@cornell.edu
State Accepted
Commit dea3d8c73e0c38043b7c839cc7d2431f51a03e16
Headers show
Series
  • hash.c: #include <reent.h>
Related show

Commit Message

Ken Brown July 26, 2019, 2:20 p.m.
This is needed for the prototypes of _stat64 and _fstat64 on Cygwin.

Fixes: commit 279805b2 "hash functions: use reentrant stat functions".
---
 newlib/libc/search/hash.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.21.0

Comments

Corinna Vinschen July 26, 2019, 3:11 p.m. | #1
On Jul 26 14:20, Ken Brown wrote:
> This is needed for the prototypes of _stat64 and _fstat64 on Cygwin.

> 

> Fixes: commit 279805b2 "hash functions: use reentrant stat functions".

> ---

>  newlib/libc/search/hash.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c

> index c76b157b3..60fbeb0fd 100644

> --- a/newlib/libc/search/hash.c

> +++ b/newlib/libc/search/hash.c

> @@ -43,6 +43,7 @@ static char sccsid[] = "@(#)hash.c	8.9 (Berkeley) 6/16/94";

>  

>  #include <sys/stat.h>

>  

> +#include <reent.h>

>  #include <errno.h>

>  #include <fcntl.h>

>  #include <stdio.h>

> -- 

> 2.21.0


Please push.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Patch

diff --git a/newlib/libc/search/hash.c b/newlib/libc/search/hash.c
index c76b157b3..60fbeb0fd 100644
--- a/newlib/libc/search/hash.c
+++ b/newlib/libc/search/hash.c
@@ -43,6 +43,7 @@  static char sccsid[] = "@(#)hash.c	8.9 (Berkeley) 6/16/94";
 
 #include <sys/stat.h>
 
+#include <reent.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>