mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Merge "include/asterisk/time.h: Renamed global declaration:tv"
This commit is contained in:
@@ -37,10 +37,12 @@
|
||||
|
||||
/* We have to let the compiler learn what types to use for the elements of a
|
||||
struct timeval since on linux, it's time_t and suseconds_t, but on *BSD,
|
||||
they are just a long. */
|
||||
extern struct timeval tv;
|
||||
typedef typeof(tv.tv_sec) ast_time_t;
|
||||
typedef typeof(tv.tv_usec) ast_suseconds_t;
|
||||
they are just a long.
|
||||
note:dummy_tv_var_for_types never actually gets exported, only used as
|
||||
local place holder. */
|
||||
extern struct timeval dummy_tv_var_for_types;
|
||||
typedef typeof(dummy_tv_var_for_types.tv_sec) ast_time_t;
|
||||
typedef typeof(dummy_tv_var_for_types.tv_usec) ast_suseconds_t;
|
||||
|
||||
/*!
|
||||
* \brief Computes the difference (in seconds) between two \c struct \c timeval instances.
|
||||
|
Reference in New Issue
Block a user