forked from rarias/bscpkgs
		
	The rdma-core driver.h include is no longer installed:
 56dd87acd2
So ibv_read_sysfs_file() is not defined. As the symbols is still
distributed, we simply add the missing prototype manually.
Similarly, the gaspi_get_system_mem() function is not available from the
gaspi public headers, so we define it in the max_mem.c test.
Fixes: rarias/bscpkgs#7
Reviewed-by: Aleix Boné <abonerib@bsc.es>
Tested-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
		
	
			
		
			
				
	
	
		
			13 lines
		
	
	
		
			454 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			454 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
--- a/src/devices/ib/GPI2_IB.h	2025-09-12 13:25:31.564181121 +0200
 | 
						|
+++ b/src/devices/ib/GPI2_IB.h	2025-09-12 13:24:49.105422150 +0200
 | 
						|
@@ -26,6 +26,9 @@ along with GPI-2. If not, see <http://ww
 | 
						|
 
 | 
						|
 #include "GPI2_Dev.h"
 | 
						|
 
 | 
						|
+/* Missing prototype as driver.h is now private */
 | 
						|
+int ibv_read_sysfs_file(const char *dir, const char *file, char *buf, size_t size);
 | 
						|
+
 | 
						|
 #define GASPI_GID_INDEX   (0)
 | 
						|
 #define PORT_LINK_UP      (5)
 | 
						|
 #define MAX_INLINE_BYTES  (128)
 |