public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm - use C99 transportable data type for pointer storage
@ 2009-11-10  1:48 Stan C. Smith
       [not found] ` <086F8B40ADA84EE7B6398F4761937836-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  2009-11-12 19:05 ` Sasha Khapyorsky
  0 siblings, 2 replies; 7+ messages in thread
From: Stan C. Smith @ 2009-11-10  1:48 UTC (permalink / raw)
  To: 'Sasha Khapyorsky'; +Cc: linux-rdma, ofw


In order to skip the #ifndef __WIN__ around #include <stdint.h>, inttypes.h was used.
'inttypes.h' includes stdint.h and exists in the WinOF svn tree.
OFED opensm builds without problems on EL 5.3.

Signed-off-by: stan smith <stan.smith@intel.com>

diff --git a/opensm/include/opensm/st.h b/opensm/include/opensm/st.h
index 30cc308..ad6c289 100644
--- a/opensm/include/opensm/st.h
+++ b/opensm/include/opensm/st.h
@@ -39,6 +39,7 @@
 #define ST_INCLUDED
 
 #include <stdlib.h>
+#include <inttypes.h>
 
 #ifdef __cplusplus
 #  define BEGIN_C_DECLS extern "C" {
@@ -49,7 +50,7 @@
 #endif				/* __cplusplus */
 
 BEGIN_C_DECLS
-#define st_ptr_t unsigned long
+#define st_ptr_t uintptr_t
 typedef st_ptr_t st_data_t;
 
 #define ST_DATA_T_DEFINED

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-11-12 19:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10  1:48 [PATCH] opensm - use C99 transportable data type for pointer storage Stan C. Smith
     [not found] ` <086F8B40ADA84EE7B6398F4761937836-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-11-12 17:32   ` Smith, Stan
     [not found]     ` <3F6F638B8D880340AB536D29CD4C1E1912CC482F85-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2009-11-12 18:09       ` [ofw] RE: [PATCH] opensm - use C99 transportable data type forpointer storage Leonid Keller
     [not found]         ` <2ED289D4E09FBD4D92D911E869B97FDD01876DAA-ia22CT07NJfiMCgWhms8HQC/G2K4zDHf@public.gmane.org>
2009-11-12 18:13           ` Sean Hefty
2009-11-12 18:21             ` Smith, Stan
2009-11-12 19:02       ` [PATCH] opensm - use C99 transportable data type for pointer storage Sasha Khapyorsky
2009-11-12 19:05 ` Sasha Khapyorsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox