Commits

Marius Schamschula authored e75e44c8113
nghttp2: fix Leopard build

Closes: https://trac.macports.org/ticket/54446
No tags

www/nghttp2/files/src-shrpx_config.diff

Added
1 +--- src/shrpx_config.cc~ 2017-07-02 10:46:31.000000000 +0200
2 ++++ src/shrpx_config.cc 2017-07-09 22:29:41.000000000 +0200
3 +@@ -43,6 +43,21 @@
4 + #endif // HAVE_UNISTD_H
5 + #include <dirent.h>
6 +
7 ++#ifdef __APPLE__ // this block only for Macs
8 ++# ifndef __MAC_OS_X_VERSION_MIN_REQUIRED // are AvailabilityMacros.h or Availability.h not yet included?
9 ++# if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050 // then for Leopard and later…
10 ++# include <Availability.h> // …either include this…
11 ++# else
12 ++# include <AvailabilityMacros.h> // …or include that
13 ++# endif
14 ++# endif
15 ++# if __MAC_OS_X_VERSION_MIN_REQUIRED < 1060 // and for some OS versions do this…
16 ++# ifndef AI_NUMERICSERV
17 ++# define AI_NUMERICSERV 0
18 ++# endif
19 ++# endif // finish OS version discrimination
20 ++#endif // finish Apple case
21 ++
22 + #include <cstring>
23 + #include <cerrno>
24 + #include <limits>

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut