GLOB_ONLYDIR not defined in glob.h

Kizito Porta Balanyà kfeina@gmail.com
Wed Dec 17 17:15:00 GMT 2014


Hello,

I'm trying to compile monit in cygwin, but I get an error:

src/process/sysdep_UNKNOWN.c:218:34: error: ‘GLOB_ONLYDIR’ not
declared (first use))
   if ((rv = glob("/proc/[0-9]*", GLOB_ONLYDIR, NULL, &globbuf))) {

The function is:
  if ((rv = glob("/proc/[0-9]*", GLOB_ONLYDIR, NULL, &globbuf))) {
    LogError("system statistic error -- glob failed: %d (%s)\n", rv, STRERROR);
    return FALSE;
  }

Do you know why GLOB_ONLYDIR is not defined in glob.h?

Thanks a lot for your time.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list