Make GLOB_ONLYDIR optional

Issue #285 resolved
Former user created an issue

Compilation currently fails on linux system using the musl libc library.(See http://bluedragon-tinderbox.freeharbor.net/app-admin/monit-5.12.2/temp/build.log) because the GNU extension GLOB_ONLYDIR is used.

The man page says that GLOB_ONLYDIR is only an optimization, so it seems sensible to use 0 when it is not defined.

Comments (1)

  1. Tildeslash repo owner

    Fixed: Issue #285: Compilation of monit on linux with musl libc library. On linux all /proc/[0-9]* matching entries are directories anyway, GLOB_ONLYDIR flag had no effect => dropping it.

    → <<cset 1f3dd5d54977>>

  2. Log in to comment