summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-04-23 20:22:59 +1000
committerDamien Miller <djm@mindrot.org>2002-04-23 20:22:59 +1000
commit594a71b9b92af786d34d8d961162374e5e4af72f (patch)
tree650179a18f0e5f7db787ba32fc83f41c929ce3fe /defines.h
parentf02dccc0dc5711d5bdfb45f92a2f1bba41e365f0 (diff)
downloadopenssh-git-594a71b9b92af786d34d8d961162374e5e4af72f.tar.gz
- (djm) Bug #222: Fix tests for getaddrinfo on OSF/1. Spotted by
Robert Urban <urban@spielwiese.de>
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/defines.h b/defines.h
index 65a03bd1..c6b08c40 100644
--- a/defines.h
+++ b/defines.h
@@ -1,7 +1,7 @@
#ifndef _DEFINES_H
#define _DEFINES_H
-/* $Id: defines.h,v 1.86 2002/04/12 03:35:40 tim Exp $ */
+/* $Id: defines.h,v 1.87 2002/04/23 10:23:00 djm Exp $ */
/* Constants */
@@ -415,6 +415,10 @@ struct winsize {
/* Function replacement / compatibility hacks */
+#if !defined(HAVE_GETADDRINFO) && (defined(HAVE_OGETADDRINFO) || defined(HAVE_NGETADDRINFO))
+# define HAVE_GETADDRINFO
+#endif
+
#ifndef HAVE_GETOPT_OPTRESET
#define getopt(ac, av, o) BSDgetopt(ac, av, o)
#endif