aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-30 22:41:39 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-30 22:41:39 +0000
commite289d5bfb3498033599a134e7dd09d0a56396865 (patch)
tree5324c01d16729f9bad2a4550afec08eb4e72f981 /socket.c
parent571856076ae43a247b968d4c0072f945b579112b (diff)
downloadfetchmail-e289d5bfb3498033599a134e7dd09d0a56396865.tar.gz
fetchmail-e289d5bfb3498033599a134e7dd09d0a56396865.tar.bz2
fetchmail-e289d5bfb3498033599a134e7dd09d0a56396865.zip
This version works.
svn path=/trunk/; revision=713
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index c552e31d..af5018e4 100644
--- a/socket.c
+++ b/socket.c
@@ -172,7 +172,17 @@ int SockWrite(char *buf, int size, int len, FILE *sockfp)
char *SockGets(char *buf, int len, FILE *sockfp)
{
- return(fgets(buf, len, sockfp));
+ char *in = fgets(buf, len, sockfp);
+
+#ifndef linux
+ /*
+ * Weirdly, this actually wedges under Linux (2.0.27 with libc 5.3.12-8).
+ * It's apparently good under NEXTSTEP.
+ */
+ fseek(sockfp, 0L, SEEK_CUR); /* required by POSIX */
+#endif /* linux */
+
+ return(in);
}
#endif