summaryrefslogtreecommitdiffstats
path: root/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch
diff options
context:
space:
mode:
authorWill Newton <will.newton@gmail.com>2012-10-19 06:27:47 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-10-20 21:11:06 +0200
commit3d48c41284d0daee0b70312022c7c6d31f730eb7 (patch)
tree4cb9c0590c51163ce65a3cecdecfa5bdc138bd57 /package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch
parentaa866e877b98aabd54f25cfff14a31ee01716c3a (diff)
downloadbuildroot-novena-3d48c41284d0daee0b70312022c7c6d31f730eb7.tar.gz
buildroot-novena-3d48c41284d0daee0b70312022c7c6d31f730eb7.zip
package/lttng-babeltrace: Bump version to 1.0.0-rc6.
Signed-off-by: Will Newton <will.newton@imgtec.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch')
-rw-r--r--package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch b/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch
new file mode 100644
index 000000000..d77825fab
--- /dev/null
+++ b/package/lttng-babeltrace/lttng-babeltrace-no-posix-fallocate-in-uclibc.patch
@@ -0,0 +1,37 @@
+Do not call posix_fallocate() on uClibc
+
+uClibc does not implement posix_fallocate(), and posix_fallocate() is
+mostly only an hint to the kernel that we will need such or such
+amount of space inside a file. So we just don't call posix_fallocate()
+when building against uClibc.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+[Peter: add #include <features.h>
+---
+ formats/ctf/ctf.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+Index: lttng-babeltrace-0.8/formats/ctf/ctf.c
+===================================================================
+--- lttng-babeltrace-0.8.orig/formats/ctf/ctf.c
++++ lttng-babeltrace-0.8/formats/ctf/ctf.c
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <dirent.h>
++#include <features.h>
+ #include <glib.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+@@ -384,9 +385,11 @@
+ }
+ pos->content_size = -1U; /* Unknown at this point */
+ pos->packet_size = WRITE_PACKET_LEN;
++#ifndef __UCLIBC__
+ off = posix_fallocate(pos->fd, pos->mmap_offset,
+ pos->packet_size / CHAR_BIT);
+ assert(off >= 0);
++#endif
+ pos->offset = 0;
+ } else {
+ read_next_packet: