adjust libffi hacks that avoid warnings
This commit is contained in:
parent
de94854243
commit
a530109d17
|
@ -2,6 +2,7 @@ Version 5.0.0.9
|
||||||
Continuation barriers now block only downward continuation jumps
|
Continuation barriers now block only downward continuation jumps
|
||||||
and allow escapes through full continuations
|
and allow escapes through full continuations
|
||||||
Added #:async-apply option to _fun
|
Added #:async-apply option to _fun
|
||||||
|
Upgraded to libffi 3.0.9+
|
||||||
|
|
||||||
Version 5.0.0.8
|
Version 5.0.0.8
|
||||||
Changed internal-definition handling to allow expressions mixed
|
Changed internal-definition handling to allow expressions mixed
|
||||||
|
|
4
src/configure
vendored
4
src/configure
vendored
|
@ -12250,10 +12250,6 @@ if test -d "${srcdir}/foreign" && test "${enable_foreign}" = "yes" ; then
|
||||||
|
|
||||||
FOREIGNTARGET="foreign-stuff"
|
FOREIGNTARGET="foreign-stuff"
|
||||||
FOREIGN_IF_USED="FOREIGN_USED"
|
FOREIGN_IF_USED="FOREIGN_USED"
|
||||||
# --disable-multilib is needed to avoid problems when running libffi's
|
|
||||||
# configure script. This thing affects all usages of AC_CONFIG_SUBDIRS, but
|
|
||||||
# other scripts do not use it anyway.
|
|
||||||
ac_configure_args="$ac_configure_args --disable-multilib"
|
|
||||||
else
|
else
|
||||||
FOREIGNTARGET="foreign-stub"
|
FOREIGNTARGET="foreign-stub"
|
||||||
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"
|
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"
|
||||||
|
|
|
@ -14,7 +14,8 @@ ways at git commit 3f5b1375ab1e2b8e3d59 from
|
||||||
|
|
||||||
Local changes:
|
Local changes:
|
||||||
|
|
||||||
* cast ftruncate() result in "closures.c" to avoid warning.
|
* Test ftruncate() result in "closures.c" to avoid a compiler
|
||||||
|
warning.
|
||||||
|
|
||||||
========== libffi_msvc directory =====================================
|
========== libffi_msvc directory =====================================
|
||||||
|
|
||||||
|
|
|
@ -413,7 +413,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
|
||||||
close (execfd);
|
close (execfd);
|
||||||
goto retry_open;
|
goto retry_open;
|
||||||
}
|
}
|
||||||
(void)ftruncate (execfd, offset);
|
if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
|
||||||
|
}
|
||||||
return MFAIL;
|
return MFAIL;
|
||||||
}
|
}
|
||||||
else if (!offset
|
else if (!offset
|
||||||
|
@ -425,7 +426,8 @@ dlmmap_locked (void *start, size_t length, int prot, int flags, off_t offset)
|
||||||
if (start == MFAIL)
|
if (start == MFAIL)
|
||||||
{
|
{
|
||||||
munmap (ptr, length);
|
munmap (ptr, length);
|
||||||
(void)ftruncate (execfd, offset);
|
if (ftruncate (execfd, offset)) { /* test avoids a compiler warning */
|
||||||
|
}
|
||||||
return start;
|
return start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1586,10 +1586,6 @@ if test -d "${srcdir}/foreign" && test "${enable_foreign}" = "yes" ; then
|
||||||
AC_CONFIG_SUBDIRS( foreign/libffi )
|
AC_CONFIG_SUBDIRS( foreign/libffi )
|
||||||
FOREIGNTARGET="foreign-stuff"
|
FOREIGNTARGET="foreign-stuff"
|
||||||
FOREIGN_IF_USED="FOREIGN_USED"
|
FOREIGN_IF_USED="FOREIGN_USED"
|
||||||
# --disable-multilib is needed to avoid problems when running libffi's
|
|
||||||
# configure script. This thing affects all usages of AC_CONFIG_SUBDIRS, but
|
|
||||||
# other scripts do not use it anyway.
|
|
||||||
ac_configure_args="$ac_configure_args --disable-multilib"
|
|
||||||
else
|
else
|
||||||
FOREIGNTARGET="foreign-stub"
|
FOREIGNTARGET="foreign-stub"
|
||||||
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"
|
MZOPTIONS="$MZOPTIONS -DDONT_USE_FOREIGN"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user