#include <limits.h>
#include <sys/wait.h>
#include <sys/stat.h>
-#include <sys/time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#include <stdarg.h>
#include "citadel.h"
#include "messages.h"
}
}
+ if (num_msgs == 0) {
+ printf("*** There are no ");
+ if (c == 1) printf("new ");
+ if (c == 2) printf("old ");
+ printf("messages in this room.\n");
+ return;
+ }
+
lines_printed = 0;
/* this loop cycles through each message... */