Skip to content
Snippets Groups Projects
Commit e6f77da6 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "include/asterisk/time.h: Renamed global declaration:tv"

parents a146bde1 6745cd65
No related branches found
No related tags found
No related merge requests found
...@@ -37,10 +37,12 @@ ...@@ -37,10 +37,12 @@
/* We have to let the compiler learn what types to use for the elements of a /* 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, struct timeval since on linux, it's time_t and suseconds_t, but on *BSD,
they are just a long. */ they are just a long.
extern struct timeval tv; note:dummy_tv_var_for_types never actually gets exported, only used as
typedef typeof(tv.tv_sec) ast_time_t; local place holder. */
typedef typeof(tv.tv_usec) ast_suseconds_t; 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. * \brief Computes the difference (in seconds) between two \c struct \c timeval instances.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment