ib-diags: maintain copy of patch to port to winof
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 27 May 2009 20:03:33 +0000 (20:03 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 27 May 2009 20:03:33 +0000 (20:03 +0000)
winof needs this patch to build the ported ib-diags.  Maintain a copy of the patch in svn for convenience of other developers.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2217 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

tools/infiniband-diags/patches/ibping-cdecl.diff [new file with mode: 0644]

diff --git a/tools/infiniband-diags/patches/ibping-cdecl.diff b/tools/infiniband-diags/patches/ibping-cdecl.diff
new file mode 100644 (file)
index 0000000..50a309a
--- /dev/null
@@ -0,0 +1,19 @@
+ib-diags/ibping: thread callback must be __cdecl for windows\r
+\r
+The WDK build environment builds using stdcall, but the thread callback must be __cdecl.\r
+This is a windows specific build issue with the ported ib-diags.\r
+\r
+Signed-off-by: Sean Hefty <sean.hefty@intel.com>\r
+---\r
+diff -up -r -I '\$Id:' infiniband-diags.git/src/ibping.c infiniband-diags/src/ibping.c\r
+--- infiniband-diags.git/src/ibping.c  2009-05-27 12:50:36.676250000 -0700\r
++++ infiniband-diags/src/ibping.c      2009-05-27 12:31:12.443931500 -0700\r
+@@ -141,7 +141,7 @@ static uint64_t minrtt = ~0ull, maxrtt, \r
+ static uint64_t start, total_time, replied, lost, ntrans;\r
+ static ib_portid_t portid = {0};\r
\r
+-void report(int sig)\r
++void __cdecl report(int sig)\r
+ {\r
+       total_time = cl_get_time_stamp() - start;\r
\r