• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/liboping/0001-configure-also-check-for-clockgettime.patch
Yann E. MORINYann E. MORIN committed 246c991891105 Jul 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From a45f3610beba1f7e6e1a038e3a1fe4150057c262 Mon Sep 17 00:00:00 2001
2
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
3
Date: Tue, 5 Jul 2016 15:31:28 +0200
4
Subject: [PATCH] configure: also check for clockgettime()
5
​
6
clock_gettime() is also in -lrt so we also need to check for it.
7
​
8
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
9
---
10
 configure.ac | 10 +++++++---
11
 1 file changed, 7 insertions(+), 3 deletions(-)
12
​
13
diff --git a/configure.ac b/configure.ac
14
index f83f5ab..3b6ae09 100644
15
--- a/configure.ac
16
+++ b/configure.ac
17
@@ -199,12 +199,16 @@ fi
18
 
19
 AC_SUBST(LIBOPING_PC_LIBS_PRIVATE)
20
 
21
-nanosleep_needs_rt="no"
22
+needs_rt="no"
23
 AC_CHECK_FUNCS(nanosleep, [],
24
    AC_CHECK_LIB(rt, nanosleep,
25
-       [nanosleep_needs_rt="yes"],
26
+       [needs_rt="yes"],
27
        AC_MSG_ERROR(cannot find nanosleep)))
28
-AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$nanosleep_needs_rt" = "xyes")
29
+AC_CHECK_FUNCS(clock_gettime, [],
30
+   AC_CHECK_LIB(rt, clock_gettime,
31
+       [needs_rt="yes"],
32
+       AC_MSG_ERROR(cannot find clock_gettime)))
33
+AM_CONDITIONAL(BUILD_WITH_LIBRT, test "x$needs_rt" = "xyes")
34
 
35
 with_ncurses="no"
36
 AC_CHECK_HEADERS(ncursesw/ncurses.h ncurses.h, [with_ncurses="yes"], [])
37
-- 
38
2.7.4
39
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.