diff --git a/appl/popper/pop_updt.c b/appl/popper/pop_updt.c index 25610190c..cada72817 100644 --- a/appl/popper/pop_updt.c +++ b/appl/popper/pop_updt.c @@ -15,6 +15,7 @@ static char SccsId[] = "@(#)@(#)pop_updt.c 2.3 2.3 3/20/91"; #include #include #include +#include #include "popper.h" extern int errno; @@ -79,7 +80,7 @@ POP * p; } /* Go to the right places */ - offset = lseek((int)fileno(p->drop),0,L_XTND) ; + offset = lseek((int)fileno(p->drop),0,SEEK_END) ; /* Append any messages that may have arrived during the session to the temporary maildrop */ @@ -100,7 +101,7 @@ POP * p; /* Synch stdio and the kernel for the POP drop */ rewind(p->drop); - (void)lseek((int)fileno(p->drop),0,L_SET); + (void)lseek((int)fileno(p->drop),0,SEEK_SET); /* Transfer messages not flagged for deletion from the temporary maildrop to the new maildrop */ @@ -180,7 +181,7 @@ POP * p; } /* Go to start of new mail if any */ - (void)lseek((int)fileno(p->drop),offset,L_SET); + (void)lseek((int)fileno(p->drop),offset,SEEK_SET); while((nchar=read((int)fileno(p->drop),buffer,BUFSIZ)) > 0) if ( nchar != write(mfd,buffer,nchar) ) {