diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
commit | baccdb349b31c47cd76fb63211f754ed33a9707e (patch) | |
tree | d03653f975fd4eb8bf71bb0c9d168614401202fa /defines.h | |
parent | 487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (diff) | |
parent | 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb (diff) |
Import openssh_6.8p1.orig.tar.gz
Diffstat (limited to 'defines.h')
-rw-r--r-- | defines.h | 25 |
1 files changed, 17 insertions, 8 deletions
@@ -105,6 +105,17 @@ enum | |||
105 | # endif /* PATH_MAX */ | 105 | # endif /* PATH_MAX */ |
106 | #endif /* MAXPATHLEN */ | 106 | #endif /* MAXPATHLEN */ |
107 | 107 | ||
108 | #ifndef HOST_NAME_MAX | ||
109 | # include "netdb.h" /* for MAXHOSTNAMELEN */ | ||
110 | # if defined(_POSIX_HOST_NAME_MAX) | ||
111 | # define HOST_NAME_MAX _POSIX_HOST_NAME_MAX | ||
112 | # elif defined(MAXHOSTNAMELEN) | ||
113 | # define HOST_NAME_MAX MAXHOSTNAMELEN | ||
114 | # else | ||
115 | # define HOST_NAME_MAX 255 | ||
116 | # endif | ||
117 | #endif /* HOST_NAME_MAX */ | ||
118 | |||
108 | #if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0 | 119 | #if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0 |
109 | # define MAXSYMLINKS 5 | 120 | # define MAXSYMLINKS 5 |
110 | #endif | 121 | #endif |
@@ -586,6 +597,12 @@ struct winsize { | |||
586 | # undef HAVE_GAI_STRERROR | 597 | # undef HAVE_GAI_STRERROR |
587 | #endif | 598 | #endif |
588 | 599 | ||
600 | #if defined(HAVE_GETADDRINFO) | ||
601 | # if defined(HAVE_DECL_AI_NUMERICSERV) && HAVE_DECL_AI_NUMERICSERV == 0 | ||
602 | # define AI_NUMERICSERV 0 | ||
603 | # endif | ||
604 | #endif | ||
605 | |||
589 | #if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX) | 606 | #if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX) |
590 | # undef HAVE_UPDWTMPX | 607 | # undef HAVE_UPDWTMPX |
591 | #endif | 608 | #endif |
@@ -805,14 +822,6 @@ struct winsize { | |||
805 | # define SSH_IOBUFSZ 8192 | 822 | # define SSH_IOBUFSZ 8192 |
806 | #endif | 823 | #endif |
807 | 824 | ||
808 | #ifndef _NSIG | ||
809 | # ifdef NSIG | ||
810 | # define _NSIG NSIG | ||
811 | # else | ||
812 | # define _NSIG 128 | ||
813 | # endif | ||
814 | #endif | ||
815 | |||
816 | /* | 825 | /* |
817 | * Platforms that have arc4random_uniform() and not arc4random_stir() | 826 | * Platforms that have arc4random_uniform() and not arc4random_stir() |
818 | * shouldn't need the latter. | 827 | * shouldn't need the latter. |