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 /driver.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 'driver.c')
-rw-r--r-- | driver.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -31,6 +31,10 @@ #include <sys/time.h> #include <signal.h> +#ifdef HAVE_NET_SOCKET_H +#include <net/socket.h> +#endif + #ifdef HAVE_RES_SEARCH #include <netdb.h> #include "mx.h" @@ -98,7 +102,7 @@ static int msglen; /* actual message length */ void set_timeout(int timeleft) /* reset the nonresponse-timeout */ { -#ifndef __EMX__ +#if !defined(__EMX__) && !defined(__BEOS__) struct itimerval ntimeout; if (timeleft == 0) @@ -1612,8 +1616,10 @@ const int maxfetch; /* maximum number of messages to fetch */ { if (h_errno == HOST_NOT_FOUND) strcpy(errbuf, _("host is unknown.")); +#ifndef __BEOS__ else if (h_errno == NO_ADDRESS) strcpy(errbuf, _("name is valid but has no IP address.")); +#endif else if (h_errno == NO_RECOVERY) strcpy(errbuf, _("unrecoverable name server error.")); else if (h_errno == TRY_AGAIN) |