Arrange for queue.c to aapt to systems w/o new directory code
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 4 Nov 1982 01:00:42 +0000 (17:00 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 4 Nov 1982 01:00:42 +0000 (17:00 -0800)
SCCS-mr: usr.sbin/sendmail/src/version.c 056
SCCS-mr: usr.sbin/sendmail/src/queue.c 056
SCCS-vsn: usr.sbin/sendmail/src/version.c 3.232
SCCS-vsn: usr.sbin/sendmail/src/queue.c 3.47

usr/src/usr.sbin/sendmail/src/queue.c
usr/src/usr.sbin/sendmail/src/version.c

index 6e177fb..fa3fe21 100644 (file)
@@ -5,10 +5,10 @@
 # include <errno.h>
 
 # ifndef QUEUE
 # include <errno.h>
 
 # ifndef QUEUE
-SCCSID(@(#)queue.c     3.46            %G%     (no queueing));
+SCCSID(@(#)queue.c     3.47            %G%     (no queueing));
 # else QUEUE
 
 # else QUEUE
 
-SCCSID(@(#)queue.c     3.46            %G%);
+SCCSID(@(#)queue.c     3.47            %G%);
 
 /*
 **  QUEUEUP -- queue a message up for future transmission.
 
 /*
 **  QUEUEUP -- queue a message up for future transmission.
@@ -254,6 +254,15 @@ runqueue(forkflag)
 
 # define WLSIZE                120     /* max size of worklist per sort */
 
 
 # define WLSIZE                120     /* max size of worklist per sort */
 
+# ifndef DIR
+# define DIR           FILE
+# define direct                dir
+# define opendir(d)    fopen(d, "r")
+# define readdir(f)    (fread(dbuf, sizeof dbuf, 1, f) > 0 ? &dbuf : 0)
+static struct dir      dbuf;
+# define closedir(f)   fclose(f)
+# endif DIR
+
 orderq()
 {
        register struct direct *d;
 orderq()
 {
        register struct direct *d;
index af1f174..0dca5d5 100644 (file)
@@ -1,5 +1,5 @@
 # ifndef lint
 # ifndef lint
-static char    SccsId[] = "@(#)SendMail version 3.231 of %G%";
+static char    SccsId[] = "@(#)SendMail version 3.232 of %G%";
 # endif lint
 
 # endif lint
 
-char   Version[] = "3.231 [%G%]";
+char   Version[] = "3.232 [%G%]";