Blob Blame History Raw
commit acf0c149503b034955557020ea1ad89713cded12
Author: Razvan Crainea <razvan@opensips.org>
Date:   Thu Feb 2 13:38:06 2023 +0200

    lua: proper include for timegm
    
    Thanks go to Jonathan Wakely (@jwakely on GitHub) for reporting it.
    Close #3005

diff --git a/modules/lua/sipdatetime.c b/modules/lua/sipdatetime.c
index 0febffd6aba4be47..7f3f41cc805b7443 100644
--- a/modules/lua/sipdatetime.c
+++ b/modules/lua/sipdatetime.c
@@ -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>