mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 01:00:20 +02:00
On some systems <libc.h> conflicts with <unistd.h>, and should not
be #included at all. * aclocal.m4 (GUILE_HEADER_LIBC_WITH_UNISTD): New autoconf macro. * configure.in: Call it. * acconfig.h (LIBC_H_WITH_UNISTD_H): New CPP symbol. * posix.c, filesys.c: Use its results to decide whether or not to #include <libc.h>. * configure, scmconfig.h.in: Rebuilt with autoconf and autoheader.
This commit is contained in:
parent
deb95d7196
commit
3594582bd1
7 changed files with 180 additions and 43 deletions
|
@ -75,7 +75,7 @@ extern char *ttyname();
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBC_H
|
||||
#ifdef LIBC_H_WITH_UNISTD_H
|
||||
#include <libc.h>
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue