diff options
author | 2019-05-12 15:56:56 +0000 | |
---|---|---|
committer | 2019-05-12 15:56:56 +0000 | |
commit | f08045d97071b83f8060eb2f2b4785284b75c9c9 (patch) | |
tree | eea8fc1651fd288ca5f9d415fd39acb5ac8181a0 /lib/libz/zconf.h | |
parent | Fix signed overflow in X509_CRL_print(). (diff) | |
download | wireguard-openbsd-f08045d97071b83f8060eb2f2b4785284b75c9c9.tar.xz wireguard-openbsd-f08045d97071b83f8060eb2f2b4785284b75c9c9.zip |
Add ZLIB_CONST
Introduced in zlib-1.2.5.2, used by a few ports. ok deraadt@
Diffstat (limited to 'lib/libz/zconf.h')
-rw-r--r-- | lib/libz/zconf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libz/zconf.h b/lib/libz/zconf.h index 0bb218cd4f8..7ac5b7b8d83 100644 --- a/lib/libz/zconf.h +++ b/lib/libz/zconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: zconf.h,v 1.7 2005/07/20 15:56:41 millert Exp $ */ +/* $OpenBSD: zconf.h,v 1.8 2019/05/12 15:56:56 jca Exp $ */ /* zconf.h -- configuration of the zlib compression library * Copyright (C) 1995-2005 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h @@ -125,6 +125,12 @@ # endif #endif +#if defined(ZLIB_CONST) && !defined(z_const) +# define z_const const +#else +# define z_const +#endif + /* Some Mac compilers merge all .h files incorrectly: */ #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__) # define NO_DUMMY_DECL |