diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-26 20:11:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-26 20:11:11 +0100 |
commit | ce7be3a0e6f19bc85990bb8fcfe5e208944777b4 (patch) | |
tree | 05f693e575be40068c6ced92e0fd72f8e2e49264 /src/auto | |
parent | 2472a74be4dedfeaff22314f31cf9787618163d1 (diff) |
patch 8.2.2056: configure fails when building with implicit-function-declarationv8.2.2056
Problem: Configure fails when building with the
"implicit-function-declaration" error enabled, specifically on Mac.
Solution: Declear the functions like in the source code. (suggestion by
Clemens Lang, closes #7380)
Diffstat (limited to 'src/auto')
-rwxr-xr-x | src/auto/configure | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/auto/configure b/src/auto/configure index 13eaea6f85..d1359485b6 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -12350,10 +12350,18 @@ if test -c /dev/ptmx ; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +// These should be in stdlib.h, but it depends on _XOPEN_SOURCE. +char *ptsname(int); +int unlockpt(int); +int grantpt(int); + int main () { -ptsname(0);grantpt(0);unlockpt(0); + + ptsname(0); + grantpt(0); + unlockpt(0); ; return 0; } |