diff options
author | marcus <marcus@FreeBSD.org> | 2003-02-18 04:37:21 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-02-18 04:37:21 +0800 |
commit | 3e16a60f0f38a865690f111acae72055e39fdf9c (patch) | |
tree | 0b6094c69f43c982f980a3ba9ebedbf0eb26e136 /devel/libgtop/files | |
parent | 3437b2f114304aff411252735b69fe758778bd2e (diff) | |
download | freebsd-ports-gnome-3e16a60f0f38a865690f111acae72055e39fdf9c.tar.gz freebsd-ports-gnome-3e16a60f0f38a865690f111acae72055e39fdf9c.tar.zst freebsd-ports-gnome-3e16a60f0f38a865690f111acae72055e39fdf9c.zip |
Do not die if libgtop encounters a different OS version than the one on which
it was compiled. Instead, warn the user, and keep on going.
Submitted by: Thomas E. Zander <riggs@rrr.de>
Diffstat (limited to 'devel/libgtop/files')
-rw-r--r-- | devel/libgtop/files/patch-src_daemon_server.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/libgtop/files/patch-src_daemon_server.c b/devel/libgtop/files/patch-src_daemon_server.c new file mode 100644 index 000000000000..bf0bba5c7f21 --- /dev/null +++ b/devel/libgtop/files/patch-src_daemon_server.c @@ -0,0 +1,17 @@ +--- src/daemon/server.c.orig Mon Feb 17 15:22:19 2003 ++++ src/daemon/server.c Mon Feb 17 15:23:31 2003 +@@ -88,11 +88,12 @@ + if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) || + strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) || + strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) { +- fprintf (stderr, "Can only run on %s %s %s\n", ++ fprintf (stderr, "This libgtop was compiled on %s %s %s\n", + LIBGTOP_COMPILE_SYSTEM, + LIBGTOP_COMPILE_RELEASE, + LIBGTOP_COMPILE_MACHINE); +- _exit (1); ++ fprintf (stderr, "If you see strange problems caused by it,\n"); ++ fprintf (stderr, "you should recompile libgtop and dependent applications\n"); + } + #endif + |