aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-13 19:07:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-13 19:07:38 +0000
commit538023278d853b2f310954e0b220be25ccea6330 (patch)
tree12b9ab819fdf7f30127c60156072acb62f177a48 /socket.c
parent0df439b3a15fac408f8273c22e4a94b7b70d166f (diff)
downloadfetchmail-538023278d853b2f310954e0b220be25ccea6330.tar.gz
fetchmail-538023278d853b2f310954e0b220be25ccea6330.tar.bz2
fetchmail-538023278d853b2f310954e0b220be25ccea6330.zip
QNX port.
svn path=/trunk/; revision=96
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index 058b3ea6..fdbd9cb1 100644
--- a/socket.c
+++ b/socket.c
@@ -27,7 +27,12 @@
#if defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
+#if defined(QNX)
+#include <stdio.h>
+#include <stdarg.h>
+#else
#include <stdlib.h>
+#endif
#include <varargs.h>
#include <errno.h>
#include "bzero.h"
@@ -181,15 +186,24 @@ int len;
else {
bcopy(bp,buf,len);
sbuflen -= len;
+#if defined(QNX)
+int SockPrintf(int socket, char* format, ...)
+{
+#else
bp += len;
}
return(len);
}
+#endif
/* SockClearHeader: call this procedure in order to kill off any
forthcoming Header info from the socket that we no longer want.
*/
+#if defined(QNX)
+ va_start(ap, format) ;
+#else
int SockClearHeader(socket)
+#endif
int socket;
{
char *bufp;