extern struct tm *localtime();
extern char *getenv();
-#ifndef _MINIX
-#ifndef __STDC__
-extern char *malloc();
-extern char *realloc();
-#endif
-#endif
+extern char *xmalloc();
+extern char *xrealloc();
/* external variables */
extern int errno;
#define FILENAME_LENGTH 1024
+#if defined __MINGW32__
+# define getuid() 0
+# define chown(file, uid, gid) 0
+# define kill(pid, sig) 0
+# define link(from, to) 0
+#endif
+
/* ------------------------------------------------------------------------ */
/* YOUR CUSTOMIZIES */
/* ------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------ */
/* Slide relation */
/* ------------------------------------------------------------------------ */
-#if defined(__STDC__) || defined(AIX)
+#if HAVE_LIMITS_H
#include <limits.h>
#define LONG_MIN (LONG_MAX-ULONG_MAX)
#endif
-#endif /* not __STDC__ */
+#endif
/* ------------------------------------------------------------------------ */
/* FILE Attribute */