[tracker/rss-enclosures] tracker-store: Ensure inline compilation of alloca by adding the include
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-store: Ensure inline compilation of alloca by adding the include
- Date: Wed, 24 Nov 2010 01:44:32 +0000 (UTC)
commit 65c1fec3ad728a827a99d147f2ed3ca581f9cdc9
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]