Date: Fri, 8 Jul 2005 09:05:54 -0400 (EDT) From: hotlips Internet admin Reply-To: smail3-devel@weird.com To: smail3-devel@weird.com Subject: parse.c patch This patch is still needed for parse.c on SunOS 4.1.x, and I'm sure a lot of other older os's need it as well. Thanks, Bruce Becker +1 416 410 0879 GTS Network Administration Toronto, Ont. Email: hostmaster@gts.net --------- 8< --------- 8< --------- 8< --------- 8< --------- 8< --------- *** parse.c~ Tue Feb 10 17:28:06 2004 --- parse.c Tue Jan 11 11:26:33 2005 *************** *** 76,81 **** --- 76,100 ---- #include "extern.h" #include "smailport.h" + #define fpos_t off_t + int fsetpos(S, P) + FILE *S; + fpos_t *P; + { + + errno = 0; + return fseek(S, *P, SEEK_SET); + } + int fgetpos(S, P) + FILE *S; + fpos_t *P; + { + + errno = 0; + *P = ftell(S); + return errno; + } + /* variables exported from this file */ char *on = "1"; /* boolean on attribute value */ char *off = "0"; /* boolean off attribute value */