summaryrefslogtreecommitdiff
path: root/app-text/djvu/files/djvu-3.5.24-gcc46.patch
blob: 2d1d099bfbb9ef2380cff6f5dfb0794f6f2464bb (plain)
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
32
33
34
35
36
37
38
39
40
http://bugs.gentoo.org/361057 for GSmartPointer.h change

Then include stddef.h in the installed headers to fix building of reverse
dependencies, such as app-text/zathura-djvu

These are all in upstream GIT

--- a/libdjvu/ddjvuapi.h
+++ b/libdjvu/ddjvuapi.h
@@ -64,6 +64,7 @@
 }
 #endif
 
+#include <stddef.h>
 #include <stdlib.h>
 #include <stdio.h>
 
--- a/libdjvu/GSmartPointer.h
+++ b/libdjvu/GSmartPointer.h
@@ -62,6 +62,8 @@
 # pragma interface
 #endif
 
+#include <cstddef>
+
 /** @name GSmartPointer.h
 
     Files #"GSmartPointer.h"# and #"GSmartPointer.cpp"# define a smart-pointer
--- a/libdjvu/miniexp.h
+++ b/libdjvu/miniexp.h
@@ -38,7 +38,8 @@
 #ifndef MINILISPAPI
 # define MINILISPAPI /**/
 #endif
-  
+
+#include <stddef.h>
 
 /* -------------------------------------------------- */
 /* LISP EXPRESSIONS                                   */