#include <stdio.h>
#include <ctype.h>
#include <string.h>
-#include <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 "citadel.h"
void get_config(void);
get_config();
sprintf(flnm,"./network/spoolin/rcit.%ld", (long)getpid());
- sprintf(tname, tmpnam(NULL));
+ strcpy(tname, tmpnam(NULL));
for (a=1; a<argc; ++a) {
if (!strcmp(argv[a],"-z")) compressed_input = 1;