diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-02 21:21:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-02 21:21:35 +0200 |
commit | 9d8bfae50fdaf5f5ec6307c60ebd1fad0927c6be (patch) | |
tree | 18088c1843a58322b1295a226ad60c8fef88190f /src/globals.h | |
parent | a5d3841177e0b3545381c875d0b4b442f38784bd (diff) |
patch 8.2.1570: configure check for dirfd() does not work on HPUXv8.2.1570
Problem: Configure check for dirfd() does not work on HPUX. (Michael Osipov)
Solution: Use AC_TRY_LINK instead of AC_TRY_COMPILE. (closes #6838)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h index 1a764b5091..7dbc49e3ec 100644 --- a/src/globals.h +++ b/src/globals.h @@ -773,7 +773,8 @@ EXTERN int ru_wid; // 'rulerfmt' width of ruler when non-zero EXTERN int sc_col; // column for shown command #ifdef TEMPDIRNAMES -# if defined(UNIX) && defined(HAVE_FLOCK) && defined(HAVE_DIRFD) +# if defined(UNIX) && defined(HAVE_FLOCK) \ + && (defined(HAVE_DIRFD) || defined(__hpux)) EXTERN DIR *vim_tempdir_dp INIT(= NULL); // File descriptor of temp dir # endif EXTERN char_u *vim_tempdir INIT(= NULL); // Name of Vim's own temp dir. |