summaryrefslogtreecommitdiff
path: root/openbsd-compat/fake-rfc2553.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-07-14 21:37:36 +1000
committerDamien Miller <djm@mindrot.org>2008-07-14 21:37:36 +1000
commitc4657ef1818c67e91115389a69ef783412fd54b7 (patch)
treef86bf4b3212b32010f473baa414a5321a0f99aee /openbsd-compat/fake-rfc2553.h
parent1fc231cbb50f899a1aa6c919c4d7750876b01f2e (diff)
- (djm) [openbsd-compat/fake-rfc2553.c openbsd-compat/fake-rfc2553.h]
return EAI_FAMILY when trying to lookup unsupported address family; from vinschen AT redhat.com
Diffstat (limited to 'openbsd-compat/fake-rfc2553.h')
-rw-r--r--openbsd-compat/fake-rfc2553.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsd-compat/fake-rfc2553.h b/openbsd-compat/fake-rfc2553.h
index 13240970f..3e9090fc8 100644
--- a/openbsd-compat/fake-rfc2553.h
+++ b/openbsd-compat/fake-rfc2553.h
@@ -1,4 +1,4 @@
1/* $Id: fake-rfc2553.h,v 1.15 2008/06/10 13:52:51 dtucker Exp $ */ 1/* $Id: fake-rfc2553.h,v 1.16 2008/07/14 11:37:37 djm 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.
@@ -129,6 +129,9 @@ struct sockaddr_in6 {
129#ifndef EAI_SYSTEM 129#ifndef EAI_SYSTEM
130# define EAI_SYSTEM (INT_MAX - 4) 130# define EAI_SYSTEM (INT_MAX - 4)
131#endif 131#endif
132#ifndef EAI_FAMILY
133# define EAI_FAMILY (INT_MAX - 5)
134#endif
132 135
133#ifndef HAVE_STRUCT_ADDRINFO 136#ifndef HAVE_STRUCT_ADDRINFO
134struct addrinfo { 137struct addrinfo {