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
Index: gle-graphics/src/gle/file_io.cpp
===================================================================
--- gle-graphics.orig/src/gle/file_io.cpp
+++ gle-graphics/src/gle/file_io.cpp
@@ -1354,7 +1354,7 @@ bool GetExeName(const char* appname, cha
 		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;
