File tree Expand file tree Collapse file tree 5 files changed +35
-14
lines changed
Expand file tree Collapse file tree 5 files changed +35
-14
lines changed Original file line number Diff line number Diff line change @@ -10101,15 +10101,25 @@ fi
1010110101
1010210102
1010310103
10104- { $as_echo " $as_me :${as_lineno-$LINENO } : checking for /proc/self/exe " >&5
10105- $as_echo_n " checking for /proc/self/exe ... " >&6 ; }
10104+ { $as_echo " $as_me :${as_lineno-$LINENO } : checking for /proc link to executable " >&5
10105+ $as_echo_n " checking for /proc link to executable ... " >&6 ; }
1010610106if test -L " /proc/self/exe" ; then
10107- { $as_echo " $as_me :${as_lineno-$LINENO } : result: yes" >&5
10108- $as_echo " yes" >&6 ; }
10109- $as_echo " #define HAVE_PROC_SELF_EXE 1" >> confdefs.h
10107+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: /proc/self/exe" >&5
10108+ $as_echo " /proc/self/exe" >&6 ; }
10109+ $as_echo " #define PROC_EXE_LINK \" /proc/self/exe\" " >> confdefs.h
10110+
10111+ elif test -L " /proc/self/path/a.out" ; then
10112+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: /proc/self/path/a.out" >&5
10113+ $as_echo " /proc/self/path/a.out" >&6 ; }
10114+ $as_echo " #define PROC_EXE_LINK \" /proc/self/path/a.out\" " >> confdefs.h
10115+
10116+ elif test -L " /proc/curproc/file" ; then
10117+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: /proc/curproc/file" >&5
10118+ $as_echo " /proc/curproc/file" >&6 ; }
10119+ $as_echo " #define PROC_EXE_LINK \" /proc/curproc/file\" " >> confdefs.h
1011010120
1011110121else
10112- { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
10122+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
1011310123$as_echo " no" >&6 ; }
1011410124fi
1011510125
Original file line number Diff line number Diff line change 446446/* Define if fcntl()'s F_SETFD command knows about FD_CLOEXEC */
447447#undef HAVE_FD_CLOEXEC
448448
449- /* Define if /proc/self/exe can be read */
450- #undef HAVE_PROC_SELF_EXE
449+ /* Define if /proc/self/exe or similar can be read */
450+ #undef PROC_EXE_LINK
451451
452452/* Define if you want Cygwin to use the WIN32 clipboard, not compatible with X11*/
453453#undef FEAT_CYGWIN_WIN32_CLIPBOARD
Original file line number Diff line number Diff line change @@ -3020,12 +3020,21 @@ dnl ---------------------------------------------------------------------------
30203020dnl end of GUI-checking
30213021dnl ---------------------------------------------------------------------------
30223022
3023- AC_MSG_CHECKING ( [ for /proc/self/exe ] )
3023+ AC_MSG_CHECKING ( [ for /proc link to executable ] )
30243024if test -L "/proc/self/exe"; then
3025- AC_MSG_RESULT ( yes )
3026- AC_DEFINE ( HAVE_PROC_SELF_EXE )
3025+ dnl Linux
3026+ AC_MSG_RESULT ( [ /proc/self/exe] )
3027+ AC_DEFINE ( PROC_EXE_LINK , "/proc/self/exe" )
3028+ elif test -L "/proc/self/path/a.out"; then
3029+ dnl Solaris
3030+ AC_MSG_RESULT ( [ /proc/self/path/a.out] )
3031+ AC_DEFINE ( PROC_EXE_LINK , "/proc/self/path/a.out" )
3032+ elif test -L "/proc/curproc/file"; then
3033+ dnl FreeBSD
3034+ AC_MSG_RESULT ( [ /proc/curproc/file] )
3035+ AC_DEFINE ( PROC_EXE_LINK , "/proc/curproc/file" )
30273036else
3028- AC_MSG_RESULT ( no )
3037+ AC_MSG_RESULT ( no )
30293038fi
30303039
30313040dnl Check for Cygwin, which needs an extra source file if not using X11
Original file line number Diff line number Diff line change @@ -3539,11 +3539,11 @@ set_progpath(char_u *argv0)
35393539{
35403540 char_u * val = argv0 ;
35413541
3542- # ifdef HAVE_PROC_SELF_EXE
3542+ # ifdef PROC_EXE_LINK
35433543 char buf [PATH_MAX + 1 ];
35443544 ssize_t len ;
35453545
3546- len = readlink ("/proc/self/exe" , buf , PATH_MAX );
3546+ len = readlink (PROC_EXE_LINK , buf , PATH_MAX );
35473547 if (len > 0 )
35483548 {
35493549 buf [len ] = NUL ;
Original file line number Diff line number Diff line change @@ -764,6 +764,8 @@ static char *(features[]) =
764764
765765static int included_patches [] =
766766{ /* Add new patch number below this line */
767+ /**/
768+ 464 ,
767769/**/
768770 463 ,
769771/**/
You can’t perform that action at this time.
0 commit comments