This is the mail archive of the
cygwin
mailing list for the Cygwin project.
GLOB_ONLYDIR not defined in glob.h
- From: Kizito Porta Balanyà <kfeina at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 17 Dec 2014 18:15:12 +0100
- Subject: GLOB_ONLYDIR not defined in glob.h
- Authentication-results: sourceware.org; auth=none
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