X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Foprofile%2F0001-Include-time.h-for-nanosleep.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Foprofile%2F0001-Include-time.h-for-nanosleep.patch;h=d4a9ca2abe00c0f41c69d05b6803b71ecf51eae4;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/oprofile/0001-Include-time.h-for-nanosleep.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/oprofile/0001-Include-time.h-for-nanosleep.patch new file mode 100644 index 0000000..d4a9ca2 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/oprofile/0001-Include-time.h-for-nanosleep.patch @@ -0,0 +1,44 @@ +From c5b93c33a81d7c52dc6089387e415f2d653f758f Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Mon, 29 Dec 2014 11:43:51 +0100 +Subject: [PATCH] Include for nanosleep() + +The nanosleep() function prototype is in , so this header file +should be included whenever nanosleep() is used. Not including it +causes some issues when building OProfile against a non-thread capable +version of the uClibc C library, probably because in such situation, + does not get included by another header. + +Signed-off-by: Thomas Petazzoni +--- + pe_counting/ocount.cpp | 1 + + pe_profiling/operf.cpp | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/pe_counting/ocount.cpp b/pe_counting/ocount.cpp +index 07dfd0c..fba29eb 100644 +--- a/pe_counting/ocount.cpp ++++ b/pe_counting/ocount.cpp +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + + #include "op_pe_utils.h" + #include "ocount_counter.h" +diff --git a/pe_profiling/operf.cpp b/pe_profiling/operf.cpp +index 04a25d9..4238754 100644 +--- a/pe_profiling/operf.cpp ++++ b/pe_profiling/operf.cpp +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + #include + #include "operf_utils.h" + #include "op_pe_utils.h" +-- +2.1.0 +