Package: erlang / 1:21.2.6+dfsg-1

beamload.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
Author: Sergei Golovan
Description: Patch fixes function declaration. It includes the
 corresponding header instead of specifying the prototype directly.
Bugs-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747593

--- a/erts/emulator/Makefile.in
+++ b/erts/emulator/Makefile.in
@@ -695,6 +695,7 @@
 COMMON_INCLUDES += -Ipcre -Ihipe
 COMMON_INCLUDES += -I../include -I../include/$(TARGET)
 COMMON_INCLUDES += -I../include/internal -I../include/internal/$(TARGET)
+COMMON_INCLUDES += -Idrivers/common
 
 INCLUDES  =  -I$(TTF_DIR) $(COMMON_INCLUDES)
 
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -49,7 +49,7 @@
 #include "hipe_load.h"
 #endif
 
-ErlDrvBinary* erts_gzinflate_buffer(char*, int);
+#include "gzio.h"
 
 #define MAX_OPARGS 8
 #define CALLED    0