mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 23:28:59 +00:00
Merged revisions 69392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r69392 | kpfleming | 2007-06-14 16:50:40 -0500 (Thu, 14 Jun 2007) | 2 lines use ast_localtime() in every place localtime_r() was being used ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -33,11 +33,13 @@
|
||||
#include <netdb.h>
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
#include <time.h> /* we want to override localtime_r */
|
||||
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/time.h"
|
||||
#include "asterisk/logger.h"
|
||||
#include "asterisk/compiler.h"
|
||||
#include "asterisk/localtime.h"
|
||||
|
||||
/*!
|
||||
\note \verbatim
|
||||
@@ -255,6 +257,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