File: Enable-support-for-GNU-Hurd.patch

package info (click to toggle)
clfft 2.12.2-3.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,760 kB
  • sloc: cpp: 77,342; python: 1,058; ansic: 1,018; sh: 33; makefile: 24
file content (21 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Ghislain Antony Vaillant <ghisvail@gmail.com>
Date: Wed, 30 Mar 2016 15:26:45 +0100
Subject: Enable support for GNU/Hurd.

---
 src/include/sharedLibrary.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/sharedLibrary.h b/src/include/sharedLibrary.h
index 07d456e..6c46557 100644
--- a/src/include/sharedLibrary.h
+++ b/src/include/sharedLibrary.h
@@ -36,7 +36,7 @@ inline void* LoadSharedLibrary( std::string unixPrefix, std::string libraryName,
 
 	//	HMODULE is actually the load address; function returns NULL if it cannot find the shared library
 	HMODULE fileHandle	= ::LoadLibraryExA( libraryName.c_str( ), NULL, NULL );
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__GNU__)
         tstring linuxName = unixPrefix;
 	linuxName += libraryName += ".so";
 	void* fileHandle = ::dlopen( linuxName.c_str( ), RTLD_NOW );