summaryrefslogtreecommitdiff
path: root/office/texlive/patches/texlive-20170524-source-gcc7-1.patch
blob: c2d3521a5b048800b0c37dc12390d945ef525378 (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
Submitted By: Ken Moffat <ken at linuxfromscratch dot org>
Date: 2017-06-05
Initial Package Version: 20170524
Upstream Status: Unknown
Origin: http://tug.org/pipermail/tex-live/2017-June/040192.html
Description: From Dr. Werner Fink of SuSe, fixes compilation with gcc-7.1

diff -Naur texlive-20170524-source.orig/texk/web2c/luatexdir/luaffi/ctype.c texlive-20170524-source/texk/web2c/luatexdir/luaffi/ctype.c
--- texlive-20170524-source.orig/texk/web2c/luatexdir/luaffi/ctype.c	2017-02-10 01:03:59.000000000 +0000
+++ texlive-20170524-source/texk/web2c/luatexdir/luaffi/ctype.c	2017-06-05 02:32:34.548531839 +0100
@@ -245,6 +245,10 @@
 
     lua_pop(L, 1); /* mt */
     cd = (struct cdata*) lua_touserdata(L, idx);
+    if (!cd) {
+        lua_pushnil(L);
+        return NULL;
+    }
     *ct = cd->type;
     lua_getuservalue(L, idx);
 
diff -Naur texlive-20170524-source.orig/texk/web2c/luatexdir/luaffi/ffi.h texlive-20170524-source/texk/web2c/luatexdir/luaffi/ffi.h
--- texlive-20170524-source.orig/texk/web2c/luatexdir/luaffi/ffi.h	2017-03-11 01:04:06.000000000 +0000
+++ texlive-20170524-source/texk/web2c/luatexdir/luaffi/ffi.h	2017-06-05 02:32:34.548531839 +0100
@@ -370,7 +370,7 @@
 #endif
 struct cdata {
     const struct ctype type
-#ifdef __GNUC__
+#if 0 /* def __GNUC__ */
       __attribute__ ((aligned(16)))
 #endif
       ;