Make use of GLOB_BRACE and GLOB_NOMAGIC optional

These flags are non-portable GNU extensions. Make their use
optional. This fixes complication error on e.g. musl c-library
based systems.

Change-Id: I0aa06efc62aa8995f091445c8b762a75a91042f3
This commit is contained in:
Timo Teräs
2016-06-03 08:39:02 +03:00
parent 48843a107d
commit 797695c5cc
2 changed files with 12 additions and 0 deletions

View File

@@ -80,6 +80,12 @@ ASTERISK_REGISTER_FILE()
#if !defined(GLOB_ABORTED)
#define GLOB_ABORTED GLOB_ABEND
#endif
#if !defined(GLOB_BRACE)
#define GLOB_BRACE 0
#endif
#if !defined(GLOB_NOMAGIC)
#define GLOB_NOMAGIC 0
#endif
#include "asterisk/logger.h"
#include "asterisk/utils.h"

View File

@@ -839,6 +839,12 @@ ASTERISK_REGISTER_FILE()
#if !defined(GLOB_ABORTED)
#define GLOB_ABORTED GLOB_ABEND
#endif
#if !defined(GLOB_BRACE)
#define GLOB_BRACE 0
#endif
#if !defined(GLOB_NOMAGIC)
#define GLOB_NOMAGIC 0
#endif
#include "asterisk/logger.h"
#include "asterisk/utils.h"