1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/xxgdb/files/patch-ah
Kris Kennaway f2f88a531e Fix build on -current (union wait removal).
Submitted by:	kan
2002-09-07 20:38:01 +00:00

21 lines
543 B
Plaintext

--- 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