mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 22:08:28 +00:00
use ast_localtime() in every place localtime_r() was being used
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@69392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -32,12 +32,14 @@
|
||||
#include <arpa/inet.h> /* we want to override inet_ntoa */
|
||||
#include <netdb.h>
|
||||
#include <limits.h>
|
||||
#include <time.h> /* we want to override localtime_r */
|
||||
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/time.h"
|
||||
#include "asterisk/strings.h"
|
||||
#include "asterisk/logger.h"
|
||||
#include "asterisk/compiler.h"
|
||||
#include "asterisk/localtime.h"
|
||||
|
||||
/*! \note
|
||||
\verbatim
|
||||
@@ -235,6 +237,11 @@ const char *ast_inet_ntoa(struct in_addr ia);
|
||||
#endif
|
||||
#define inet_ntoa __dont__use__inet_ntoa__use__ast_inet_ntoa__instead__
|
||||
|
||||
#ifdef localtime_r
|
||||
#undef localtime_r
|
||||
#endif
|
||||
#define localtime_r __dont_use_localtime_r_use_ast_localtime_instead__
|
||||
|
||||
int ast_utils_init(void);
|
||||
int ast_wait_for_input(int fd, int ms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user