mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
Fix MinGW HAVE_STRUCT_TIMESPEC build problem
Reported by Carlo Bramini. See the comment in _scm.h. * THANKS: Add Carlo Bramini. * libguile/_scm.h: Undefine HAVE_STRUCT_TIMESPEC.
This commit is contained in:
parent
32a2609de0
commit
cbee5075d6
3 changed files with 21 additions and 0 deletions
1
NEWS
1
NEWS
|
@ -46,6 +46,7 @@ Changes in 1.8.7 (since 1.8.6)
|
||||||
* Bugs fixed
|
* Bugs fixed
|
||||||
|
|
||||||
** Fix %fast-slot-ref/set!, to avoid possible segmentation fault
|
** Fix %fast-slot-ref/set!, to avoid possible segmentation fault
|
||||||
|
** Fix MinGW build problem caused by HAVE_STRUCT_TIMESPEC confusion
|
||||||
|
|
||||||
|
|
||||||
Changes in 1.8.6 (since 1.8.5)
|
Changes in 1.8.6 (since 1.8.5)
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -23,6 +23,7 @@ For fixes or providing information which led to a fix:
|
||||||
David Allouche
|
David Allouche
|
||||||
Martin Baulig
|
Martin Baulig
|
||||||
Fabrice Bauzac
|
Fabrice Bauzac
|
||||||
|
Carlo Bramini
|
||||||
Rob Browning
|
Rob Browning
|
||||||
Adrian Bunk
|
Adrian Bunk
|
||||||
Michael Carmack
|
Michael Carmack
|
||||||
|
|
|
@ -38,6 +38,25 @@
|
||||||
# include <config.h>
|
# include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Undefine HAVE_STRUCT_TIMESPEC, because the libguile C code doesn't
|
||||||
|
need it anymore, and because on MinGW:
|
||||||
|
|
||||||
|
- the definition of struct timespec is provided (if at all) by
|
||||||
|
pthread.h
|
||||||
|
|
||||||
|
- pthread.h will _not_ define struct timespec if
|
||||||
|
HAVE_STRUCT_TIMESPEC is 1, because then it thinks that it doesn't
|
||||||
|
need to.
|
||||||
|
|
||||||
|
The libguile C code doesn't need HAVE_STRUCT_TIMESPEC anymore,
|
||||||
|
because the value of HAVE_STRUCT_TIMESPEC has already been
|
||||||
|
incorporated in how scm_t_timespec is defined (in scmconfig.h), and
|
||||||
|
the rest of the libguile C code now just uses scm_t_timespec.
|
||||||
|
*/
|
||||||
|
#ifdef HAVE_STRUCT_TIMESPEC
|
||||||
|
#undef HAVE_STRUCT_TIMESPEC
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "libguile/__scm.h"
|
#include "libguile/__scm.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue