mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.1497: Link error with shm_open()
Problem: Link error with shm_open() (gcanat, after v9.1.1485) Solution: use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE fixes: #17634 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
5
src/auto/configure
vendored
5
src/auto/configure
vendored
@ -9080,7 +9080,7 @@ shm_open("/test", O_CREAT, 0600);
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_compile "$LINENO"
|
if ac_fn_c_try_link "$LINENO"
|
||||||
then :
|
then :
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h
|
printf "%s\n" "yes" >&6; }; printf "%s\n" "#define HAVE_SHM_OPEN 1" >>confdefs.h
|
||||||
@ -9090,7 +9090,8 @@ else case e in #(
|
|||||||
printf "%s\n" "no" >&6; } ;;
|
printf "%s\n" "no" >&6; } ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
rm -f core conftest.err conftest.$ac_objext conftest.beam \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
CPPFLAGS=$cppflags_save
|
CPPFLAGS=$cppflags_save
|
||||||
|
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-wayland argument" >&5
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking --with-wayland argument" >&5
|
||||||
|
@ -2392,7 +2392,7 @@ dnl defining FEAT_XFONTSET is delayed, so that it can be disabled for no GUI
|
|||||||
AC_MSG_CHECKING(if shm_open is available)
|
AC_MSG_CHECKING(if shm_open is available)
|
||||||
cppflags_save=$CPPFLAGS
|
cppflags_save=$CPPFLAGS
|
||||||
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
AC_LINK_IFELSE([AC_LANG_PROGRAM(
|
||||||
[#include <sys/mman.h>
|
[#include <sys/mman.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>], [shm_open("/test", O_CREAT, 0600);])],
|
#include <fcntl.h>], [shm_open("/test", O_CREAT, 0600);])],
|
||||||
|
@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1497,
|
||||||
/**/
|
/**/
|
||||||
1496,
|
1496,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user