diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-13 19:07:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-13 19:07:38 +0000 |
commit | 538023278d853b2f310954e0b220be25ccea6330 (patch) | |
tree | 12b9ab819fdf7f30127c60156072acb62f177a48 /socket.c | |
parent | 0df439b3a15fac408f8273c22e4a94b7b70d166f (diff) | |
download | fetchmail-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.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; |