Package: gle-graphics / 4.2.4c-6

kfreebsd-buildd-has-no-proc Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: /proc/self/exe file system is a linuxism
 On the kfreebsd buildds the proc filesystem does not seem to be
 mounted, while it is mounted on the porterbox. Building gle-graphics
 fails on these systems due to this linuxism:
 GNU/kfreeBSD is __UNIX__ but GNU/kfreeBSD is not __linux__
Forwarded: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644588
Author: Petr Salinger <Petr.Salinger@seznam.cz> 
Author: Jan Struyf <jan.struyf@struyf-ye.org>
Reviewed-by: Christian T. Steigies <cts@debian.org>
Last-Update: 2011-10-18
--- a/src/gle/file_io.cpp
+++ b/src/gle/file_io.cpp
@@ -1350,7 +1350,7 @@
 		return true;
 	}
 #endif
-#if defined(__UNIX__) && !defined(__MACOS__) && !defined(__FREEBSD__)
+#if defined(__linux__)
 	/* try to read location from the /proc/self/exe file */
 	char path[PATH_MAX];
 	struct stat stat_buf;