diff options
author | marcus <marcus@FreeBSD.org> | 2010-06-14 02:45:19 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2010-06-14 02:45:19 +0800 |
commit | 2ef3d8556748a42c586280a4b4c1a4f30e4ff1db (patch) | |
tree | 9b097a57216e6e7872eb7a5997fe0a6cbb90d130 | |
parent | af4b9068d4f1529a32816ce80e9864215d85c3da (diff) | |
download | freebsd-ports-gnome-2ef3d8556748a42c586280a4b4c1a4f30e4ff1db.tar.gz freebsd-ports-gnome-2ef3d8556748a42c586280a4b4c1a4f30e4ff1db.tar.zst freebsd-ports-gnome-2ef3d8556748a42c586280a4b4c1a4f30e4ff1db.zip |
Fix the build on FreeBSD 7.1.
PR: 147836
-rw-r--r-- | x11/gnome-terminal/files/patch-src_terminal-screen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11/gnome-terminal/files/patch-src_terminal-screen.c b/x11/gnome-terminal/files/patch-src_terminal-screen.c index 3af16e2e363a..69c4aa80220e 100644 --- a/x11/gnome-terminal/files/patch-src_terminal-screen.c +++ b/x11/gnome-terminal/files/patch-src_terminal-screen.c @@ -59,12 +59,12 @@ + name[3] = fgpid; + + if (sysctl (name, 4, NULL, &len, NULL, 0) < 0) -+ return g_strdup (priv->initial_working_directory); ++ return NULL; + freep = kif = g_malloc (len); + if (sysctl (name, 4, kif, &len, NULL, 0) < 0) + { + g_free (freep); -+ return g_strdup (priv->initial_working_directory); ++ return NULL; + } +#else + freep = kinfo_getfile (fgpid, &cnt); |