[ofw] [PATCH] faster compilation by replacing include <windows.h>

Smith, Stan stan.smith at intel.com
Tue Apr 13 15:49:42 PDT 2010


Compile perftests faster by using ws2tcpip.h instead of window.h + winsock2.h.
Additionally compiles correctly outside of OFED src tree.

signed-off-by: stan smith <stan.smith at intel.com>

--- a/tests/perftest/perftest.h Tue Apr 13 15:33:09 2010
+++ b/tests/perftest/perftest.h Tue Apr 13 14:55:45 2010
@@ -33,8 +33,7 @@
 #ifndef _PERFTEST_H_
 #define _PERFTEST_H_

-#include <windows.h>
-#include <winsock2.h>
+#include <ws2tcpip.h>

 typedef UINT64 cycles_t;




More information about the ofw mailing list