Damien Miller
d1bc844322
Revert "define __unused to nothing if not already defined"
...
This reverts commit 1598419e38
.
Some system headers have objects named __unused
2015-03-04 06:31:45 +11:00
Damien Miller
1598419e38
define __unused to nothing if not already defined
...
fixes builds on BSD/OS
2015-03-04 04:59:13 +11:00
Darren Tucker
1734e276d9
Move definition of _NSIG.
...
_NSIG is only unsed in one file, so move it there prevent redefinition
warnings reported by Kevin Brott.
2015-02-25 13:40:45 +11:00
Damien Miller
38806bda6d
include netdb.h to look for MAXHOSTNAMELEN; ok tim
2015-02-24 16:50:36 -08:00
Tim Rice
676c38d7cb
portability fix: if we can't dind a better define for HOST_NAME_MAX, use 255
2015-02-23 21:51:33 -08:00
Darren Tucker
28ba006c1a
More correct checking of HAVE_DECL_AI_NUMERICSERV.
2015-02-21 15:41:07 +11:00
Darren Tucker
e50e8c97a9
Add null declaration of AI_NUMERICINFO.
...
Some platforms (older FreeBSD and DragonFly versions) do have
getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero
in those cases.
2015-02-21 15:10:33 +11:00
Damien Miller
a2c95c1bf3
OSX lacks HOST_NAME_MAX, has _POSIX_HOST_NAME_MAX
2015-01-27 23:06:59 +11:00
Damien Miller
23f269562b
- (djm) [defines.h sshbuf.c] Move __predict_true|false to defines.h and
...
conditionalise to avoid duplicate definition.
2014-09-03 05:33:25 +10:00
Darren Tucker
af665bb7b0
- (dtucker) [defines.h] Fix undef of _PATH_MAILDIR. From rak at debian via
...
OpenSMTPD and chl@
2014-06-16 22:50:55 +10:00
Darren Tucker
cf5392c2db
- (dtucker) [defines.h] Add va_copy if we don't already have it, taken from
...
openbsd-compat/bsd-asprintf.c.
2014-06-12 05:22:49 +10:00
Damien Miller
18912775cb
- (djm) [commit configure.ac defines.h sshpty.c] don't attempt to use
...
vhangup on Linux. It doens't work for non-root users, and for them
it just messes up the tty settings.
2014-05-21 17:06:46 +10:00
Damien Miller
686c7d9ee6
- djm@cvs.openbsd.org 2014/05/02 03:27:54
...
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c]
[misc.h poly1305.h ssh-pkcs11.c defines.h]
revert __bounded change; it causes way more problems for portable than
it solves; pointed out by dtucker@
2014-05-15 14:37:03 +10:00
Darren Tucker
f028460d0b
- (dtucker) [defines.h] Define __GNUC_PREREQ__ macro if we don't already
...
have it. Only attempt to use __attribute__(__bounded__) for gcc.
2014-05-01 02:24:35 +10:00
Damien Miller
4f40209aa4
- djm@cvs.openbsd.org 2014/03/26 04:55:35
...
[chacha.h cipher-chachapoly.h digest.h hmac.h kex.h kexc25519.c
[misc.h poly1305.h ssh-pkcs11.c]
use __bounded(...) attribute recently added to sys/cdefs.h instead of
longform __attribute__(__bounded(...));
for brevity and a warning free compilation with llvm/clang
2014-04-20 13:21:22 +10:00
Darren Tucker
355f861022
- (dtucker) [defines.h] Move our definitions of uintXX_t types down to after
...
they're defined if we have to define them ourselves. Fixes builds on old
AIX.
2014-01-18 00:12:38 +11:00
Darren Tucker
acad351a5b
- (dtucker) [defines.h] Add typedefs for uintXX_t types for platforms that
...
don't have them.
2014-01-17 14:20:05 +11:00
Damien Miller
df8b030b15
- (djm) [configure.ac defines.h] Skip arc4random_stir() calls on platforms
...
that lack it but have arc4random_uniform()
2013-11-07 13:28:16 +11:00
Darren Tucker
007e3b357e
- (dtucker) [configure.ac defines.h] Add typedefs for intmax_t and uintmax_t
...
for platforms that don't have them.
2013-11-03 18:43:55 +11:00
Darren Tucker
c7aad0058c
- (dtucker) [configure.ac defines.h] Test for fd_mask, howmany and NFDBITS
...
rather than trying to enumerate the plaforms that don't have them.
Based on a patch from Nathan Osman, with help from tim@.
2013-06-02 07:18:47 +10:00
Darren Tucker
9243ef086f
- (dtucker) [defines.h] Remove SIZEOF_CHAR bits since the test for it is
...
was removed in configure.ac rev 1.481 as it was redundant.
2013-03-07 20:06:13 +11:00
Tim Rice
96ce9a1e45
20121205
...
- (tim) [defines.h] Some platforms are missing ULLONG_MAX. Feedback djm@.
2012-12-04 07:50:03 -08:00
Tim Rice
f79b5d38a1
- (tim) [defines.h] move chunk introduced in 1.125 before MAXPATHLEN so
...
it actually works.
2012-02-14 20:13:05 -08:00
Damien Miller
5ffe1c4b43
- (djm) [configure.ac defines.h] No need to detect sizeof(char); patch
...
from des AT des.no
2011-09-29 11:11:51 +10:00
Tim Rice
90f42b0705
- (tim) [configure.ac defines.h] Run test program to detect system mail
...
directory. Add --with-maildir option to override. Fixed OpenServer 6
getting it wrong. Fixed many systems having MAIL=/var/mail//username
ok dtucker
2011-06-02 18:17:49 -07:00
Tim Rice
9abb697d4f
- (tim) [defines.h] Deal with platforms that do not have S_IFSOCK ok djm@
2011-05-04 23:06:59 -07:00
Damien Miller
68790fedef
- (djm) [defines.h] Move up include of netinet/ip.h for IPTOS
...
definitions.
2011-05-05 11:19:13 +10:00
Darren Tucker
ea52a82969
- (dtucker) [LICENCE Makefile.in audit-bsm.c audit-linux.c audit.c audit.h
...
configure.ac defines.h loginrec.c] Bug #1402 : add linux audit subsystem
support, based on patches from Tomas Mraz and jchadima at redhat.
2011-01-17 21:15:27 +11:00
Damien Miller
73de86ac5a
- (djm) [defines.h] Add IP DSCP defines
2010-11-24 10:50:04 +11:00
Darren Tucker
54b1f3121d
- (dtucker) [defines.h] Use SIZE_T_MAX for SIZE_MAX for platforms that have a
...
native one.
2010-10-25 16:54:28 +11:00
Darren Tucker
7bc236de21
- (dtucker) [defines.h] Add SIZE_MAX for the benefit of platforms that don't
...
have it.
2010-10-24 11:58:43 +11:00
Darren Tucker
261d93a5cf
- (dtucker) [configure.ac defines.h loginrec.c logintest.c] Bug #1732 : enable
...
utmpx support on FreeBSD where possible. Patch from Ed Schouten, ok djm@
2010-04-09 18:13:27 +10:00
Tim Rice
d4a7fcbc46
- (tim) [defines.h] openbsd-compat/readpassphrase.c now needs _NSIG.
...
feedback and ok dtucker@
2010-01-13 15:44:34 -08:00
Darren Tucker
269275c90c
- (dtucker) [defines.h] Remove now-undeeded PRIu64 define.
2010-01-09 22:33:37 +11:00
Darren Tucker
709d0ce672
- (dtucker) [defines.h] define PRIu64 for platforms that don't have it.
2010-01-09 09:25:54 +11:00
Darren Tucker
86e30a0166
- (dtucker) [clientloop.c configure.ac defines.h] Make the client's IO buffer
...
size a compile-time option and set it to 64k on Cygwin, since Corinna
reports that it makes a significant difference to performance. ok djm@
2009-08-28 11:21:06 +10:00
Darren Tucker
3278062bf3
- (dtucker) [configure.ac defines.h] Bug #1607 : handle the case where fsid_t
...
is a struct with a __val member. Fixes build on, eg, Redhat 6.2.
2009-06-16 16:11:02 +10:00
Darren Tucker
ccfee05882
- (dtucker) [configure.ac defines.h] Check for in_port_t and typedef if needed.
2009-03-07 12:32:22 +11:00
Darren Tucker
642ebe5b51
- (dtucker) [defines.h sshconnect.c] INET6_ADDRSTRLEN is now needed in
...
channels.c too, so move the definition for non-IP6 platforms to defines.h
where it can be shared.
2009-02-01 22:19:54 +11:00
Tim Rice
351529ce30
- (tim) [configure.ac defines.h openbsd-compat/port-uw.c
...
openbsd-compat/xcrypt.c] Add SECUREWARE support to OpenServer 6 SVR5 ABI.
OK djm@ dtucker@
2009-01-07 10:04:12 -08:00
Damien Miller
d8968adb5f
- (djm) [atomicio.c channels.c clientloop.c defines.h includes.h]
...
[packet.c scp.c serverloop.c sftp-client.c ssh-agent.c ssh-keyscan.c]
[sshd.c] Explicitly handle EWOULDBLOCK wherever we handle EAGAIN, on
some platforms (HP nonstop) it is a distinct errno;
bz#1467 reported by sconeu AT yahoo.com; ok dtucker@
2008-07-04 23:10:49 +10:00
Darren Tucker
61b0695273
- (dtucker) [defines.h] Bug #1112 : __dead is, well dead. Based on a patch
...
from Todd Vierling.
2008-06-13 10:28:57 +10:00
Darren Tucker
77001384cc
- (dtucker) [configure.ac defines.h sftp-client.c M sftp-server.c] Add a
...
macro to convert fsid to unsigned long for platforms where fsid is a
2-member array.
2008-06-09 06:17:53 +10:00
Darren Tucker
598eaa6c0c
- (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.c
...
openbsd-compat/Makefile.in openbsd-compat/openbsd-compat.h
openbsd-compat/bsd-statvfs.{c,h}] Add a null implementation of statvfs and
fstatvfs and remove #defines around statvfs code. ok djm@
2008-06-09 03:32:29 +10:00
Darren Tucker
5b2e2ba9e4
- (dtucker) [configure.ac defines.h sftp-client.c sftp-server.c sftp.c] Do not enable statvfs extensions on platforms that do not have statvfs. ok djm@
2008-06-08 09:25:28 +10:00
Darren Tucker
3d295a6cf0
- (dtucker) [key.c defines.h openbsd-compat/openssl-compat.h] Move old OpenSSL
...
compat glue into openssl-compat.h.
2008-02-28 19:22:04 +11:00
Darren Tucker
bc1bd9dbe3
- (dtucker) [configure.ac defines.h] Shadow expiry does not work on QNX6
...
so disable it for that platform. From bacon at cs nyu edu.
2007-09-27 07:03:20 +10:00
Tim Rice
6ebefac25a
- (tim) [defines.h] Fix regression in long password support on OpenServer 6.
...
Problem report and additional testing rac AT tenzing.org.
2007-09-17 08:32:32 -07:00
Darren Tucker
a5b6f72a52
- (dtucker) [defines.h] Remove _PATH_{CSHELL,SHELLS} which aren't
...
used anywhere and are a potential source of warnings.
2007-08-09 14:37:52 +10:00
Darren Tucker
dca0edff2f
- (dtucker) [configure.ac defines.h] Have configure check for offsetof
...
to prevent redefinition warnings.
2007-04-29 15:06:44 +10:00