Changeset 82


Ignore:
Timestamp:
Jan 14, 2007, 12:22:09 AM (18 years ago)
Author:
rainer
Message:

Fix for compile failure on FreeBSD 6.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_processcheck.c

    r78 r82  
    151151#endif /* HAVE_LSTAT */
    152152
     153#if defined(S_IFLNK) && !defined(S_ISLNK)
     154#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
     155#else
     156#if !defined(S_ISLNK)
     157#define S_ISLNK(mode) (0)
     158#endif
     159#endif
     160
    153161static const short SH_PR_PS       = 0x0001;
    154162
     
    666674static short sh_processes_check (pid_t pid, short res)
    667675{
    668   int  retval;
    669676  int  have_checks = 0;
    670677  int  need_checks = 0;
     
    673680  struct stat buf;
    674681  DIR * dir;
    675 #endif
    676682#ifdef HAVE_STATVFS
     683  int  retval;
    677684  struct statvfs vfsbuf;
     685#endif
    678686#endif
    679687
Note: See TracChangeset for help on using the changeset viewer.