Browse Source

Remove get_process_stats() test.

The GLib API is used for measurement of time intervals.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 3 years ago
parent
commit
ccbac47385
2 changed files with 0 additions and 19 deletions
  1. 0 7
      configure.ac
  2. 0 12
      lib/utilunix.c

+ 0 - 7
configure.ac

@@ -311,13 +311,6 @@ if test x$with_mmap != xno; then
     fi
 fi
 
-dnl Sequent wants getprocessstats
-AC_CHECK_LIB(seq, get_process_stats, [
-	LIBS="$LIBS -lseq"
-	AC_DEFINE(HAVE_GET_PROCESS_STATS, 1,
-		  [Define if you have function `get_process_stats' and
-have to use that instead of gettimeofday])])
-
 mc_GET_FS_INFO
 
 

+ 0 - 12
lib/utilunix.c

@@ -991,18 +991,6 @@ canonicalize_pathname (char *path)
 
 /* --------------------------------------------------------------------------------------------- */
 
-#ifdef HAVE_GET_PROCESS_STATS
-int
-gettimeofday (struct timeval *tp, void *tzp)
-{
-    (void) tzp;
-
-    return get_process_stats (tp, PS_SELF, 0, 0);
-}
-#endif /* HAVE_GET_PROCESS_STATS */
-
-/* --------------------------------------------------------------------------------------------- */
-
 char *
 mc_realpath (const char *path, char *resolved_path)
 {