[libsoup] meson : Add missing check for gmtime_r()



commit f50adf6c9514a40b699c538991c1fee4edfe68b5
Author: Tomas Popela <tpopela redhat com>
Date:   Tue Sep 4 11:38:22 2018 +0200

    meson : Add missing check for gmtime_r()

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 6e5c4b39..9b0a9f14 100644
--- a/meson.build
+++ b/meson.build
@@ -94,6 +94,10 @@ endif
 libpsl_required_version = '>= 0.20'
 libpsl_dep = dependency('libpsl', version : libpsl_required_version)
 
+if cc.has_function('gmtime_r', prefix : '#include <time.h>', args : ['-D_POSIX_SOURCE'])
+    cdata.set('HAVE_GMTIME_R', '1')
+endif
+
 ###################
 # GIO TLS support #
 ###################


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]