[tracker/harmattan-pre-signal-updates: 1314/1380] tracker-store: Ensure inline compilation of alloca by adding the include
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/harmattan-pre-signal-updates: 1314/1380] tracker-store: Ensure inline compilation of alloca by adding the include
- Date: Wed, 22 Sep 2010 15:44:44 +0000 (UTC)
commit 83d86838caf7e048ffe23961c6dfb11480746685
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Sep 9 14:54:36 2010 +0200
tracker-store: Ensure inline compilation of alloca by adding the include
Check man page of alloca:
Normally, gcc(1) translates calls to alloca() with inlined code. This is
not done when either the -ansi, -std=c89, -std=c99, or the -fno-builtin
option is given (and the header <alloca.h> is not included). But beware!
By default the glibc version of <stdlib.h> includes <alloca.h> and that
contains the line:
So just to be sure ... :-)
src/tracker-store/tracker-steroids.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-steroids.c b/src/tracker-store/tracker-steroids.c
index 646d44c..c32bcf0 100644
--- a/src/tracker-store/tracker-steroids.c
+++ b/src/tracker-store/tracker-steroids.c
@@ -20,6 +20,7 @@
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
+#include <alloca.h>
#include <dbus/dbus.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]