mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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:
@@ -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"
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user