[PATCH] libosmocore[master]: configure.ac: check clock_gettime for glib < 2.17

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Apr 24 14:26:09 UTC 2018


Review at  https://gerrit.osmocom.org/7907

configure.ac: check clock_gettime for glib < 2.17

glib < 2.17 doesn't support clock_gettime directly, it is available
via librt.

Change-Id: Ice853d85ffe859b1d4df48b91b050c24d85c861b
---
M configure.ac
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/07/7907/1

diff --git a/configure.ac b/configure.ac
index 7f2aabd..9f70925 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,9 @@
 # check for syscal fallback on glibc < 2.25 - can be removed once glibc version requirement is bumped
 AC_CHECK_DECLS([SYS_getrandom], [], [], [[#include <sys/syscall.h>]])
 
+# check for old glibc < 2.17 to get clock_gettime
+AC_SEARCH_LIBS([clock_gettime],[rt posix4])
+
 # The following test is taken from WebKit's webkit.m4
 saved_CFLAGS="$CFLAGS"
 CFLAGS="$CFLAGS -fvisibility=hidden "

-- 
To view, visit https://gerrit.osmocom.org/7907
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ice853d85ffe859b1d4df48b91b050c24d85c861b
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list