Index: /trunk/src/sh_processcheck.c
===================================================================
--- /trunk/src/sh_processcheck.c	(revision 81)
+++ /trunk/src/sh_processcheck.c	(revision 82)
@@ -151,4 +151,12 @@
 #endif /* HAVE_LSTAT */
 
+#if defined(S_IFLNK) && !defined(S_ISLNK)
+#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
+#else
+#if !defined(S_ISLNK)
+#define S_ISLNK(mode) (0)
+#endif
+#endif
+
 static const short SH_PR_PS       = 0x0001;
 
@@ -666,5 +674,4 @@
 static short sh_processes_check (pid_t pid, short res)
 {
-  int  retval;
   int  have_checks = 0;
   int  need_checks = 0;
@@ -673,7 +680,8 @@
   struct stat buf;
   DIR * dir;
-#endif
 #ifdef HAVE_STATVFS
+  int  retval;
   struct statvfs vfsbuf;
+#endif
 #endif
 
