Signed-off-by: Roland Dreier <rolandd@cisco.com>
+2006-04-11 Roland Dreier <rdreier@cisco.com>
+
+ * include/infiniband/verbs.h: Add __attribute_const macro to
+ portably mark functions as __attribute__((const))
+
2006-03-28 Roland Dreier <rdreier@cisco.com>
* src/init.c (load_driver): Print warning if dlopen() of a driver
# define END_C_DECLS
#endif /* __cplusplus */
+#if __GNUC__ >= 3
+# define __attribute_const __attribute__((const))
+#else
+# define __attribute_const
+#endif
+
BEGIN_C_DECLS
union ibv_gid {
END_C_DECLS
+# undef __attribute_const
+
#endif /* INFINIBAND_VERBS_H */