diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 15:52:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-11-20 15:52:48 +0000 |
commit | c8ecb908dde9760ac2ff55f73ffd02f1a0046f59 (patch) | |
tree | 838bf5742ee57de487e1afb0154cfd40cc96582d /fetchmail.c | |
parent | 85ea804517dc39280113a281a71397fdefe59d3c (diff) | |
download | fetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.tar.gz fetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.tar.bz2 fetchmail-c8ecb908dde9760ac2ff55f73ffd02f1a0046f59.zip |
Added socks library support.
svn path=/trunk/; revision=2189
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index f06f6f26..95848491 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -195,6 +195,11 @@ int main (int argc, char **argv) #if NET_SECURITY printf("+NETSEC"); #endif /* NET_SECURITY */ +#ifdef HAVE_SOCKS + #if HAVE_SOCKS + printf("+SOCKS"); + #endif +#endif /* HAVE_SOCKS */ putchar('\n'); /* this is an attempt to help remote debugging */ @@ -415,6 +420,17 @@ int main (int argc, char **argv) } } +/* Time to initiate the SOCKS library (this is not mandatory: it just + registers the correct application name for logging purpose. If you + have some problem, comment these lines). */ +#ifdef HAVE_SOCKS + #if HAVE_SOCKS +/* Mmmh... I don't like hardcoded application names, + but "fetchmail" is everywhere... */ + SOCKSinit("fetchmail"); + #endif +#endif /* HAVE_SOCKS */ + /* * Maybe time to go to demon mode... */ |