diff options
author | kris <kris@FreeBSD.org> | 2002-09-08 04:38:01 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-09-08 04:38:01 +0800 |
commit | d708768f34bc65542016a0108650bcb5bda24260 (patch) | |
tree | b5f395b7865593495a24b6b562f3b7a9a7ce5f82 /devel | |
parent | 27e265bb409609370b20eaccd0df0109b3ab6198 (diff) | |
download | freebsd-ports-gnome-d708768f34bc65542016a0108650bcb5bda24260.tar.gz freebsd-ports-gnome-d708768f34bc65542016a0108650bcb5bda24260.tar.zst freebsd-ports-gnome-d708768f34bc65542016a0108650bcb5bda24260.zip |
Fix build on -current (union wait removal).
Submitted by: kan
Diffstat (limited to 'devel')
-rw-r--r-- | devel/xxgdb/files/patch-ah | 20 | ||||
-rw-r--r-- | devel/xxgdb/files/patch-ai | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/devel/xxgdb/files/patch-ah b/devel/xxgdb/files/patch-ah new file mode 100644 index 000000000000..2eab0ed9016b --- /dev/null +++ b/devel/xxgdb/files/patch-ah @@ -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 diff --git a/devel/xxgdb/files/patch-ai b/devel/xxgdb/files/patch-ai new file mode 100644 index 000000000000..22c65ef1a289 --- /dev/null +++ b/devel/xxgdb/files/patch-ai @@ -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 |