Skip to content

Commit

Permalink
lua: proper include for timegm
Browse files Browse the repository at this point in the history
Thanks go to Jonathan Wakely (@jwakely on GitHub) for reporting it.
Close #3005

(cherry picked from commit acf0c14)
  • Loading branch information
razvancrainea committed Feb 2, 2023
1 parent ab95174 commit f61b76b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/lua/sipdatetime.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
*/

#define _XOPEN_SOURCE
#define _DEFAULT_SOURCE /* for timegm() */
#define _BSD_SOURCE /* for timegm() */
#include <stdlib.h>
#include <string.h>
#define __USE_MISC /* for timegm() */
#include <time.h>

#include <lua.h>
Expand Down

0 comments on commit f61b76b

Please sign in to comment.