summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-08-03 10:57:15 +1000
committerDarren Tucker <dtucker@zip.com.au>2005-08-03 10:57:15 +1000
commit212cfc4b4869fbbe5b038f7480e67d26f60f1545 (patch)
tree3cd2a36fffb7398049260f83647ae751a17f9289
parent7da23cb5d307a98bb7a58445a845fab7abc35024 (diff)
- (dtucker) [openbsd-compat/fake-rfc2553.h] Check for EAI_* defines
individually and use a value less likely to collide with real values from netdb.h. Fixes compile warnings on FreeBSD 5.3. ok djm@
-rw-r--r--ChangeLog7
-rw-r--r--openbsd-compat/fake-rfc2553.h16
2 files changed, 17 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index b45ebb49b..04fa21d0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
120050803
2 - (dtucker) [openbsd-compat/fake-rfc2553.h] Check for EAI_* defines
3 individually and use a value less likely to collide with real values from
4 netdb.h. Fixes compile warnings on FreeBSD 5.3. ok djm@
5
120050802 620050802
2 - (dtucker) OpenBSD CVS Sync 7 - (dtucker) OpenBSD CVS Sync
3 - dtucker@cvs.openbsd.org 2005/07/27 10:39:03 8 - dtucker@cvs.openbsd.org 2005/07/27 10:39:03
@@ -2889,4 +2894,4 @@
2889 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 2894 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
2890 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 2895 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
2891 2896
2892$Id: ChangeLog,v 1.3860 2005/08/02 14:20:15 dtucker Exp $ 2897$Id: ChangeLog,v 1.3861 2005/08/03 00:57:15 dtucker Exp $
diff --git a/openbsd-compat/fake-rfc2553.h b/openbsd-compat/fake-rfc2553.h
index 636792ed7..24a34d17a 100644
--- a/openbsd-compat/fake-rfc2553.h
+++ b/openbsd-compat/fake-rfc2553.h
@@ -1,4 +1,4 @@
1/* $Id: fake-rfc2553.h,v 1.10 2005/02/11 07:32:13 dtucker Exp $ */ 1/* $Id: fake-rfc2553.h,v 1.11 2005/08/03 00:57:15 dtucker Exp $ */
2 2
3/* 3/*
4 * Copyright (C) 2000-2003 Damien Miller. All rights reserved. 4 * Copyright (C) 2000-2003 Damien Miller. All rights reserved.
@@ -114,10 +114,16 @@ struct sockaddr_in6 {
114#endif /* !NI_MAXHOST */ 114#endif /* !NI_MAXHOST */
115 115
116#ifndef EAI_NODATA 116#ifndef EAI_NODATA
117# define EAI_NODATA 1 117# define EAI_NODATA (MAX_INT - 1)
118# define EAI_MEMORY 2 118#endif
119# define EAI_NONAME 3 119#ifndef EAI_MEMORY
120# define EAI_SYSTEM 4 120# define EAI_MEMORY (MAX_INT - 2)
121#endif
122#ifndef EAI_NONAME
123# define EAI_NONAME (MAX_INT - 3)
124#endif
125#ifndef EAI_SYSTEM
126# define EAI_SYSTEM (MAX_INT - 4)
121#endif 127#endif
122 128
123#ifndef HAVE_STRUCT_ADDRINFO 129#ifndef HAVE_STRUCT_ADDRINFO