DD1984 / sockperf

Automatically exported from code.google.com/p/sockperf
Other
1 stars 0 forks source link

Compiliation of sockperf in Windows is failing #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compiling sockperf in Windows fails

The reason for this is that the compiler doesn't know is the type of 'uint16_t'.

The following patch fixes this issue:

commit 30be64ad3c0fcf3e761bc5abbe1b3ebf1b73fb3c
Author: Dotan Barak <dotanb@dev.mellanox.co.il>
Date:   Wed Nov 6 14:35:32 2013 +0200

    Add missing header for compilation in Windows

    Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>

diff --git a/src/Defs.h b/src/Defs.h
index 4aeb1f2..e1eca64 100644
--- a/src/Defs.h
+++ b/src/Defs.h
@@ -36,6 +36,7 @@
 #include <sys/types.h>
 #include <unordered_map>
 #include <Winbase.h>
+#include <stdint.h>

 typedef uint16_t in_port_t;

Original issue reported on code.google.com by dot...@dev.mellanox.co.il on 6 Nov 2013 at 1:13

GoogleCodeExporter commented 9 years ago
might be related to different INCLUDE_PATH for developers with DDK vs. 
developers without DDK.

Original comment by avne...@gmail.com on 6 Nov 2013 at 1:30

GoogleCodeExporter commented 9 years ago
fixed in r234

Original comment by orkmella...@gmail.com on 6 Nov 2013 at 1:48