]> granicus.if.org Git - psmisc/commitdiff
fuser: Use correct WITH_TIMEOUT_STAT to conditionalize timeout()
authorGuillem Jover <guillem@hadrons.org>
Wed, 12 Oct 2011 21:31:25 +0000 (23:31 +0200)
committerCraig Small <csmall@users.sourceforge.net>
Sat, 3 Mar 2012 21:49:49 +0000 (08:49 +1100)
Signed-off-by: Guillem Jover <guillem@hadrons.org>
src/fuser.c

index e4081ebb7832f5f30c195e0f762dc1a2d64942ae..0c6199eb71eab9ddfd5462311ddc166109089ef3 100644 (file)
@@ -1783,7 +1783,7 @@ scan_swaps(struct names *names_head, struct inode_list *ino_head,
  * Execute stat(2) system call with timeout to avoid deadlock
  * on network based file systems.
  */
-#ifdef HAVE_TIMEOUT_STAT
+#ifdef WITH_TIMEOUT_STAT
 
 static sigjmp_buf jenv;
 
@@ -1843,7 +1843,7 @@ timeout(stat_t func, const char *path, struct stat *buf, unsigned int seconds)
 err:
        return -1;
 }
-#endif /* HAVE_TIMEOUT_STAT */
+#endif /* WITH_TIMEOUT_STAT */
 
 #ifdef _LISTS_H
 /*