Package: libg3d / 0.0.8-20

implicit_declaration.patch Patch series | 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
Description: Fix implicit declarations of functions
Author: Sven Eckelmann <sven@narfation.org>

---
diff --git a/plugins/import/imp_vrml/imp_vrml_v1.c b/plugins/import/imp_vrml/imp_vrml_v1.c
index 74c21301f37c2deedb206a023e7c0a3b1f7adb45..895efc7abe04e1dc8cffa044574f73ef9f21ee83 100644
--- a/plugins/import/imp_vrml/imp_vrml_v1.c
+++ b/plugins/import/imp_vrml/imp_vrml_v1.c
@@ -17,6 +17,7 @@
 /* First, we deal with  platform-specific or compiler-specific issues. */
 
 /* begin standard C headers. */
+#define _POSIX_SOURCE 1
 #include <stdio.h>
 #include <string.h>
 #include <errno.h>
diff --git a/src/object.c b/src/object.c
index 42afe7cc4f3e34424b3e44fb2516f85107fb581e..485ef8da0a2909e9ba8c48a7ad65cba27cd40c2f 100644
--- a/src/object.c
+++ b/src/object.c
@@ -29,6 +29,7 @@
 #include <g3d/face.h>
 #include <g3d/texture.h>
 #include <g3d/object.h>
+#include <g3d/material.h>
 
 void g3d_object_free(G3DObject *object)
 {