1 From c5b93c33a81d7c52dc6089387e415f2d653f758f Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Mon, 29 Dec 2014 11:43:51 +0100
4 Subject: [PATCH] Include <time.h> for nanosleep()
6 The nanosleep() function prototype is in <time.h>, so this header file
7 should be included whenever nanosleep() is used. Not including it
8 causes some issues when building OProfile against a non-thread capable
9 version of the uClibc C library, probably because in such situation,
10 <time.h> does not get included by another header.
12 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14 pe_counting/ocount.cpp | 1 +
15 pe_profiling/operf.cpp | 1 +
16 2 files changed, 2 insertions(+)
18 diff --git a/pe_counting/ocount.cpp b/pe_counting/ocount.cpp
19 index 07dfd0c..fba29eb 100644
20 --- a/pe_counting/ocount.cpp
21 +++ b/pe_counting/ocount.cpp
28 #include "op_pe_utils.h"
29 #include "ocount_counter.h"
30 diff --git a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp
31 index 04a25d9..4238754 100644
32 --- a/pe_profiling/operf.cpp
33 +++ b/pe_profiling/operf.cpp
40 #include "operf_utils.h"
41 #include "op_pe_utils.h"