diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-04-08 06:59:47 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-04-08 06:59:47 +0000 |
commit | 2065c80c50dcd792d299ec7b4ab4887e1cb67768 (patch) | |
tree | b3dba7aeb673cbd762d620740aec69b727b21e20 /checkalias.c | |
parent | 8b999451bf2396e11fc2ff9560e2dc8ef127bfd6 (diff) | |
download | fetchmail-2065c80c50dcd792d299ec7b4ab4887e1cb67768.tar.gz fetchmail-2065c80c50dcd792d299ec7b4ab4887e1cb67768.tar.bz2 fetchmail-2065c80c50dcd792d299ec7b4ab4887e1cb67768.zip |
BeOS support.
svn path=/trunk/; revision=2866
Diffstat (limited to 'checkalias.c')
-rw-r--r-- | checkalias.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/checkalias.c b/checkalias.c index 28d7861f..5b8b6744 100644 --- a/checkalias.c +++ b/checkalias.c @@ -10,9 +10,15 @@ #include <stdio.h> #include <string.h> #include <sys/types.h> +#ifdef HAVE_NET_SOCKET_H +#include <net/socket.h> +#else #include <sys/socket.h> +#endif #include <netinet/in.h> +#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> +#endif #include <netdb.h> #include "i18n.h" #include "mx.h" @@ -180,9 +186,10 @@ int is_host_alias(const char *name, struct query *ctl) switch (h_errno) { case HOST_NOT_FOUND: /* specified host is unknown */ +#ifndef __BEOS__ case NO_ADDRESS: /* valid, but does not have an IP address */ break; - +#endif case NO_RECOVERY: /* non-recoverable name server error */ case TRY_AGAIN: /* temporary error on authoritative server */ default: @@ -206,10 +213,11 @@ int is_host_alias(const char *name, struct query *ctl) switch (h_errno) { case HOST_NOT_FOUND: /* specified host is unknown */ +#ifndef __BEOS__ case NO_ADDRESS: /* valid, but does not have an IP address */ return(FALSE); break; - +#endif case NO_RECOVERY: /* non-recoverable name server error */ case TRY_AGAIN: /* temporary error on authoritative server */ default: |