diff options
author | Neil Jerram <neil@ossau.uklinux.net> | 2010-03-26 00:48:08 +0000 |
---|---|---|
committer | Neil Jerram <neil@ossau.uklinux.net> | 2010-03-26 00:48:08 +0000 |
commit | 5be63eea82be9ca8e5df650f27857c1a90bfd937 (patch) | |
tree | ef917e8a289c38719ad4b53b419a82efc9e80f0e | |
parent | a0aa1e5b69d6ef0311aeea8e4b9a94eae18a1aaf (diff) | |
download | guile-5be63eea82be9ca8e5df650f27857c1a90bfd937.tar.gz |
Interix build warning fix
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I/src/g
uile-1.8.6 -I.. -g -O2 -Wall -Wmissing-prototypes -Werror -MT filesys.lo -MD -
MP -MF .deps/filesys.Tpo -c -o filesys.lo /src/guile-1.8.6/libguile/filesys.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I/src/guile-1.8.6 -I.. -g -O2 -Wall
-Wmissing-prototypes -Werror -MT filesys.lo -MD -MP -MF .deps/filesys.Tpo -c /s
rc/guile-1.8.6/libguile/filesys.c -DPIC -o .libs/filesys.o
/src/guile-1.8.6/libguile/filesys.c: In function `scm_readdir':
/src/guile-1.8.6/libguile/filesys.c:918: warning: implicit declaration of
function `readdir_r'
Report and fix provided by Jay Krell.
* libguile/filesys.c: On Interix, define _REENTRANT in order to pick
up readdir_r prototype.
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | THANKS | 1 | ||||
-rw-r--r-- | libguile/filesys.c | 3 |
3 files changed, 5 insertions, 0 deletions
@@ -15,6 +15,7 @@ Changes in 1.8.8 (since 1.8.7) ** Fix `wrong type arg' exceptions with IPv6 addresses ** Fix typos in `(srfi srfi-19)' ** Have `(srfi srfi-35)' provide named struct vtables +** Fix some Interix build problems Changes in 1.8.7 (since 1.8.6) @@ -65,6 +65,7 @@ For fixes or providing information which led to a fix: Matthias Köppe Matt Kraai Daniel Kraft + Jay Krell Jeff Long Marco Maggi Gregory Marton diff --git a/libguile/filesys.c b/libguile/filesys.c index 70dfe15e4..c8acb13ef 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -23,6 +23,9 @@ #ifdef __hpux #define _POSIX_C_SOURCE 199506L /* for readdir_r */ #endif +#if defined(__INTERIX) && !defined(_REENTRANT) +# define _REENTRANT /* ask Interix for readdir_r prototype */ +#endif #ifdef HAVE_CONFIG_H # include <config.h> |