1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/devel/libgtop2/files/patch-src_daemon_server.c
Joe Marcus Clarke 2bd59989c8 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>
2003-02-17 20:37:21 +00:00

18 lines
673 B
C

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