summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/defines.h b/defines.h
index 8f4213062..7855fbf90 100644
--- a/defines.h
+++ b/defines.h
@@ -96,6 +96,15 @@ enum
96#ifndef IPTOS_DSCP_EF 96#ifndef IPTOS_DSCP_EF
97# define IPTOS_DSCP_EF 0xb8 97# define IPTOS_DSCP_EF 0xb8
98#endif /* IPTOS_DSCP_EF */ 98#endif /* IPTOS_DSCP_EF */
99#ifndef IPTOS_PREC_CRITIC_ECP
100# define IPTOS_PREC_CRITIC_ECP 0xa0
101#endif
102#ifndef IPTOS_PREC_INTERNETCONTROL
103# define IPTOS_PREC_INTERNETCONTROL 0xc0
104#endif
105#ifndef IPTOS_PREC_NETCONTROL
106# define IPTOS_PREC_NETCONTROL 0xe0
107#endif
99 108
100#ifndef PATH_MAX 109#ifndef PATH_MAX
101# ifdef _POSIX_PATH_MAX 110# ifdef _POSIX_PATH_MAX
@@ -108,10 +117,6 @@ enum
108# define MAXPATHLEN PATH_MAX 117# define MAXPATHLEN PATH_MAX
109# else /* PATH_MAX */ 118# else /* PATH_MAX */
110# define MAXPATHLEN 64 119# define MAXPATHLEN 64
111/* realpath uses a fixed buffer of size MAXPATHLEN, so force use of ours */
112# ifndef BROKEN_REALPATH
113# define BROKEN_REALPATH 1
114# endif /* BROKEN_REALPATH */
115# endif /* PATH_MAX */ 120# endif /* PATH_MAX */
116#endif /* MAXPATHLEN */ 121#endif /* MAXPATHLEN */
117 122
@@ -834,9 +839,10 @@ struct winsize {
834/* 839/*
835 * We want functions in openbsd-compat, if enabled, to override system ones. 840 * We want functions in openbsd-compat, if enabled, to override system ones.
836 * We no-op out the weak symbol definition rather than remove it to reduce 841 * We no-op out the weak symbol definition rather than remove it to reduce
837 * future sync problems. 842 * future sync problems. Some compilers (eg Unixware) do not allow an
843 * empty statement, so we use a bogus function declaration.
838 */ 844 */
839#define DEF_WEAK(x) 845#define DEF_WEAK(x) void __ssh_compat_weak_##x(void)
840 846
841/* 847/*
842 * Platforms that have arc4random_uniform() and not arc4random_stir() 848 * Platforms that have arc4random_uniform() and not arc4random_stir()