#include <stdlib.h>
#include <unistd.h>
#include <stdio.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 <limits.h>
#include <errno.h>
#include <string.h>
#include "citadel.h"
#include "config.h"
-void make_message(FILE *fp, char *target_room, char *author)
+#ifndef HAVE_SNPRINTF
+#include "snprintf.h"
+#endif
+
+
+static void make_message(FILE *fp, char *target_room, char *author)
{
int a;
long bb, cc;
}
- snprintf(tempspool, sizeof tempspool, "./network/spoolin/ap.%d",
+ snprintf(tempspool, sizeof tempspool,
+ "./network/spoolin/ap.%04x",
getpid());
tempfp = tmpfile();
fclose(tempfp);
fclose(spoolfp);
- execlp("./netproc", "netproc", "-i", NULL);
- perror("cannot run netproc");
- exit(errno);
+ exit(0);
}