Fix build on -current (union wait removal).

Submitted by:	kan
This commit is contained in:
Kris Kennaway 2002-09-07 20:38:01 +00:00
parent e48b7610af
commit f2f88a531e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=65795
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,20 @@
--- command.c.orig Fri Sep 6 22:46:19 2002
+++ command.c Fri Sep 6 22:49:30 2002
@@ -383,7 +383,7 @@
XtPointer client_data;
XtPointer call_data;
{
-#ifdef SYSV
+#if defined(SYSV) || defined(__FreeBSD__)
int status;
#else
union wait status;
@@ -392,7 +392,7 @@
write_dbx("quit\n");
XtDestroyApplicationContext(app_context);
kill(dbxpid, SIGKILL);
-#ifdef SYSV
+#if defined(SYSV) || defined(__FreeBSD__)
#if 1 /* instead of ifdef SVR4 */
status = waitpid(dbxpid, (int *)0, WNOHANG); /* (MJH) */
#else

View file

@ -0,0 +1,20 @@
--- signals.c.orig Fri Sep 6 22:52:25 2002
+++ signals.c Fri Sep 6 22:52:56 2002
@@ -93,7 +93,7 @@
static void quit_handler(int sig)
{
int pid;
-#ifdef SYSV
+#if defined(SYSV) || defined(__FreeBSD__)
int status;
#else
union wait status;
@@ -102,7 +102,7 @@
/* wait for the child to report its status; if the child has died,
* exit gracefully.
*/
-#ifdef SYSV
+#if defined(SYSV) || defined(__FreeBSD__)
#if 1 /* instead of ifdef SVR4 */
pid = waitpid((pid_t)0, &status, WNOHANG|WUNTRACED); /* (MJH) */
#else