[Git][NTPsec/ntpsec][master] Make timer_create optional

Hal Murray gitlab at mg.gitlab.com
Mon Dec 24 04:56:07 UTC 2018


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
f015320a by Hal Murray at 2018-12-24T04:55:11Z
Make timer_create optional

  It's in POSIX, but not MacOS ??

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
@@ -626,12 +626,16 @@ int main(int argc, char **argv) {
 
     # Sanity checks to give a sensible error message
     required_functions = (
-        ('timer_create', ["signal.h", "time.h"], "RT"),
-        ('CMAC_CTX_new', ["openssl/cmac.h"], "CRYPTO") )
+        # MacOS doesn't have timer_create ??
+        ('timer_create', ["signal.h", "time.h"], "RT", False),
+        # Very old versions of OpenSSL don't have cmac.h
+        #  We could add ifdefs, but old crypto is deprecated in favor of CMAC
+        #  and so far, all the systems that we want to support are new enough.
+        ('CMAC_CTX_new', ["openssl/cmac.h"], "CRYPTO", True) )
     for ft in required_functions:
             probe_function(ctx, function=ft[0],
                 prerequisites=ft[1], use=ft[2],
-                mandatory=True)
+                mandatory=ft[3])
 
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f015320a973c80e7d09d104e3f64260a80cd198e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f015320a973c80e7d09d104e3f64260a80cd198e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20181224/6049ce4d/attachment-0001.html>


More information about the vc mailing list