summaryrefslogtreecommitdiff
path: root/debian/patches/eglibc-2.17.patch
blob: dc715e31d990347e86fcb588e966c42ecc52df8a (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
Description: Fix build with eglibc 2.17
 With eglibc2.17 the build failed with a couple of errors
 .
 The first error was
 #error "Never use <bits/ipctypes.h> directly; include <sys/ipc.h> instead."
 So after working out where linux.c was generated from I made the change
 suggested in the error message.
 .
 The second error was
 linux.c:613:47: error: '__swblk_t' undeclared (first use in this function)
 After some googling I found the advice at
 http://sourceforge.net/mailarchive/message.php?msg_id=30446182 and removed
 which suggested removing it was the only sane option. Looking at the fact
 that glibc defined it differently on different platforms i'm inclined to agree
 and have removed it.
Author: Peter Michael Green <plugwash@debian.org>
Bug-Debian: http://bugs.debian.org/701379

diff --git a/modules/bindings/glibc/linux.lisp b/modules/bindings/glibc/linux.lisp
index 1737032..c960753 100644
--- a/modules/bindings/glibc/linux.lisp
+++ b/modules/bindings/glibc/linux.lisp
@@ -87,7 +87,7 @@
 
 (def-c-type __key_t)            ; int
 
-(c-lines "#include <bits/ipctypes.h>~%")
+(c-lines "#include <sys/ipc.h>~%")
 (def-c-type __ipc_pid_t)        ; ushort
 
 ; --------------------------- <sys/types.h> -----------------------------------