File: 0001-fix-implicit-declarations.patch

package info (click to toggle)
libfsobasics 0.9.0%2Bgit20100509-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,676 kB
  • ctags: 103
  • sloc: sh: 10,183; makefile: 233; ansic: 12
file content (31 lines) | stat: -rw-r--r-- 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From d242974d1299a4aa6904147f58b7151ce2256e35 Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Mon, 17 May 2010 17:09:44 +0200
Subject: [PATCH] fix implicit declarations

---
 fsobasics/gcc_libinitexit.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fsobasics/gcc_libinitexit.c b/fsobasics/gcc_libinitexit.c
index 9cdafa2..7b8db33 100644
--- a/fsobasics/gcc_libinitexit.c
+++ b/fsobasics/gcc_libinitexit.c
@@ -18,11 +18,14 @@
  */
 
 #include <glib.h>
+#include <glib-object.h>
 
 // Unfortunately we need to do this in a C file, since Vala
 // does not have support for it yet. I have created a bug
 // report for that but chances are it won't make it upstream
 // See https://bugzilla.gnome.org/show_bug.cgi?id=599606
+void vala_library_init (void);
+void vala_library_fini (void);
 
 void gcc_library_init() __attribute__((constructor));
 void gcc_library_fini() __attribute__((destructor));
-- 
1.7.1