Skip to content

Commit

Permalink
patch 8.0.0751: OpenPTY missing with some combination of features
Browse files Browse the repository at this point in the history
Problem:    OpenPTY missing with some combination of features. (Kazunobu
            Kuriyama)
Solution:   Adjust #ifdef.  Also include pty.pro when needed.
  • Loading branch information
brammool committed Jul 22, 2017
1 parent 6ed8069 commit 613fe7a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/misc2.c
Expand Up @@ -6050,6 +6050,9 @@ moreenv(void)
}

# ifdef USE_VIMPTY_GETENV
/*
* Used for mch_getenv() for Mac.
*/
char_u *
vimpty_getenv(const char_u *string)
{
Expand Down
11 changes: 7 additions & 4 deletions src/proto.h
Expand Up @@ -212,15 +212,18 @@ void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void
# include "channel.pro"
# endif

# ifdef FEAT_GUI
# include "gui.pro"
# if defined(FEAT_GUI) || defined(FEAT_JOB_CHANNEL)
# if defined(UNIX) || defined(MACOS)
# include "pty.pro"
# endif
# endif

# ifdef FEAT_GUI
# include "gui.pro"
# if !defined(HAVE_SETENV) && !defined(HAVE_PUTENV) && !defined(VMS)
extern int putenv(const char *string); /* from pty.c */
extern int putenv(const char *string); /* in misc2.c */
# ifdef USE_VIMPTY_GETENV
extern char_u *vimpty_getenv(const char_u *string); /* from pty.c */
extern char_u *vimpty_getenv(const char_u *string); /* in misc2.c */
# endif
# endif
# ifdef FEAT_GUI_W32
Expand Down
2 changes: 1 addition & 1 deletion src/pty.c
Expand Up @@ -43,7 +43,7 @@

#include "vim.h"

#if defined(FEAT_GUI) || defined(FEAT_TERMINAL)
#if defined(FEAT_GUI) || defined(FEAT_JOB_CHANNEL)

#include <signal.h>

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
751,
/**/
750,
/**/
Expand Down

0 comments on commit 613fe7a

Please sign in to comment.