File umad2sim-define-UMAD_DEV_DIR-if-not-set.patch of Package ibsim.19343

commit a9a631a8a421da862682ed56f8436b1eff40f6b1
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
Date:   Fri Oct 11 08:38:23 2019 +0200

    umad2sim: define UMAD_DEV_DIR if not set
    
    Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>

diff --git umad2sim/umad2sim.c umad2sim/umad2sim.c
index 023ae797a378..3465f47d5714 100644
--- umad2sim/umad2sim.c
+++ umad2sim/umad2sim.c
@@ -67,6 +67,10 @@
 
 #define IB_PORT_EXT_SPEED_SUPPORTED_MASK (1<<14)
 
+#ifndef UMAD_DEV_DIR
+#define UMAD_DEV_DIR       "/dev/infiniband"
+#endif
+
 struct ib_user_mad_reg_req {
 	uint32_t id;
 	uint32_t method_mask[4];
openSUSE Build Service is sponsored by