Use "int" instead of "union wait" on SYSV, AIX, and POSIX.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2234
dc483132-0cff-0310-8789-
dd5450dbe970
return;
/* output the message to the console */
+#if defined(SYSV) || defined(_AIX)
+ pid = fork();
+#else
pid = vfork();
+#endif
if (pid == -1)
return;
if (pid == 0) {
(void)close(fd);
_exit(0);
}
+#if defined(SYSV) || defined(_AIX) || defined(_POSIX_SOURCE)
+#define cast int *
+#else
+#define cast union wait *
+#endif
if (!(LogStat & LOG_NOWAIT))
- while ((cnt = wait((union wait *)0)) > 0 && cnt != pid);
+ while ((cnt = wait((cast)0)) > 0 && cnt != pid);
+#undef cast
}
static struct sockaddr SyslogAddr; /* AF_UNIX address of local logger */