Remove obsolete and non-functional code that breaks the build under

2006-04-04  Julio M. Merino Vidal  <jmmv@NetBSD.org>

	* sysdeps/freebsd/proctime.c:

	Remove obsolete and non-functional code that breaks the build under
	NetBSD.  It was guarded by a conditional but could not compile
	anyway because it referred to an undefined variable.

	Fixes bug #337234.
This commit is contained in:
Julio M. Merino Vidal
2006-04-04 20:01:43 +00:00
committed by Benoît Dejean
parent 214e1decbd
commit 1870a03538
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
* sysdeps/freebsd/proctime.c:
Remove obsolete and non-functional code that breaks the build under
NetBSD. It was guarded by a conditional but could not compile
anyway because it referred to an undefined variable.
Fixes bug #337234.
2005-02-28 Benoît Dejean <TazForEver@dlfp.org> 2005-02-28 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): Forgot to add * fsusage.c: (_glibtop_freebsd_get_fsusage_read_write): Forgot to add

View File

@@ -138,11 +138,6 @@ glibtop_get_proc_time_p (glibtop *server, glibtop_proc_time *buf,
#if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000)) #if (defined(__NetBSD__) && (__NetBSD_Version__ >= 104000000))
if (server->sysdeps.proc_time == 0) if (server->sysdeps.proc_time == 0)
return; return;
#ifndef __bsdi__
sprintf (filename, "/proc/%d/mem", (int) pid);
if (stat (filename, &statb)) return;
#endif
#endif #endif
/* Get the process information */ /* Get the process information */