From c19e1d1ba52e4f19f7fd03b45ea236808a754b92 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 12 Feb 2018 20:58:11 +0100 Subject: patch 8.0.1506: new version of HP NonStop (Tandem) doesn't like a header Problem: New version of HP NonStop (Tandem) doesn't like the default header for setenv(). Solution: Put a #ifdef around the setenv() entry. (Joachim Schmitz) --- src/osdef2.h.in | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/osdef2.h.in b/src/osdef2.h.in index 330a5a4f5..f29451ddf 100644 --- a/src/osdef2.h.in +++ b/src/osdef2.h.in @@ -8,7 +8,11 @@ extern int free(char *); extern char *malloc(unsigned int); extern char *realloc(char *, int); extern char *getenv(char *); +#ifndef __TANDEM extern int setenv(char *, char *, int); +#else +extern int setenv(const char *, const char *, int); +#endif extern int putenv(const char *); #ifndef __TANDEM diff --git a/src/version.c b/src/version.c index cb7ba1896..afe8b2413 100644 --- a/src/version.c +++ b/src/version.c @@ -771,6 +771,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1506, /**/ 1505, /**/ -- cgit v1.2.3