[openib-general] [PATCH] libmthca: missing include file if libibverbs does not have ibv_read_sysfs_file
Jack Morgenstein
jackm at mellanox.co.il
Mon May 8 07:52:22 PDT 2006
include file needed in the case where libibverbs does not implement the
function ibv_read_sysfs_file().
Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>
Index: userspace/libmthca/src/mthca.c
===================================================================
--- userspace/libmthca/src/mthca.c (revision 6980)
+++ userspace/libmthca/src/mthca.c (working copy)
@@ -44,6 +44,10 @@
#include <sys/mman.h>
#include <pthread.h>
+#ifndef HAVE_IBV_READ_SYSFS_FILE
+#include <fcntl.h>
+#endif
+
#include "mthca.h"
#include "mthca-abi.h"
More information about the general
mailing list