(Saving Customizations): New node has the info on custom-file.
[bpt/emacs.git] / lib-src / yow.c
index 4efe815..c658b15 100644 (file)
  * With dynamic memory allocation.
  */
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <ctype.h>
-#include <../src/epaths.h>      /* For PATH_DATA.  */
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef TIME_WITH_SYS_TIME
+#include <sys/time.h>
+#include <time.h>
+#else
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#else
+#include <time.h>
+#endif
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include "epaths.h"            /* For PATH_DATA.  */
 
 #define BUFSIZE  80
 #define SEP      '\0'
@@ -33,7 +53,9 @@
     &res;})
 #endif
 
-char *malloc(), *realloc();
+#ifndef HAVE_STDLIB_H
+char *malloc __P ((size_t size))), *realloc __P ((POINTER_TYPE *ptr, size_t size));
+#endif
 
 void yow();
 void setup_yow();
@@ -62,7 +84,7 @@ main (argc, argv)
   }
 
   /* initialize random seed */
-  srand((int) (getpid() + time((long *) 0)));
+  srand((int) (getpid() + time((time_t *) 0)));
 
   setup_yow(fp);
   yow(fp);