* src/makeint.h: Declare it.
* src/commands.c (fatal_error_signal): Call it.
#else
# define FILE_LIST_SEPARATOR ' '
#endif
-
-#ifndef HAVE_UNISTD_H
-pid_t getpid ();
-#endif
\f
static unsigned long
#else
/* Signal the same code; this time it will really be fatal. The signal
will be unblocked when we return and arrive then to kill us. */
- if (kill (getpid (), sig) < 0)
+ if (kill (make_pid (), sig) < 0)
pfatal_with_name ("kill");
#endif /* not WINDOWS32 */
#endif /* not Amiga */
void pfatal_with_name (const char *) NORETURN;
void perror_with_name (const char *, const char *);
#define xstrlen(_s) ((_s)==NULL ? 0 : strlen (_s))
+pid_t make_pid ();
void *xmalloc (size_t);
void *xcalloc (size_t);
void *xrealloc (void *, size_t);
return result;
}
\f
+
+#ifndef HAVE_UNISTD_H
+pid_t getpid ();
+#endif
+
+pid_t make_pid ()
+{
+ return getpid ();
+}
+
/* Like malloc but get fatal error if memory is exhausted. */
/* Don't bother if we're using dmalloc; it provides these for us. */