mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
conf: check if GLOB_NOMAGIC is defined
This option is not supported by musl and possibly other libc implementations.
This commit is contained in:
6
conf.c
6
conf.c
@@ -1335,7 +1335,11 @@ parse_include(char *line)
|
||||
|
||||
check_number_of_args(line, 1);
|
||||
|
||||
if ((r = glob(line, GLOB_ERR | GLOB_NOMAGIC, NULL, &gl)) != 0) {
|
||||
if ((r = glob(line,
|
||||
#ifdef GLOB_NOMAGIC
|
||||
GLOB_NOMAGIC |
|
||||
#endif
|
||||
GLOB_ERR, NULL, &gl)) != 0) {
|
||||
if (r != GLOB_NOMATCH)
|
||||
LOG_FATAL("Could not search for files matching %s", line);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user