[ofa-general] [PATCH] libmlx4 - mmap needs some includes

sebastien dugue sebastien.dugue at bull.net
Mon Aug 3 06:40:01 PDT 2009


  Hi Roland,

  Add errno.h and sys/mman.h includes in buf.c to get mmap() support, otherwise
we cannot build as is.

  Those includes were removed in your cleanup. Sorry for not noticing earlier.


Signed-off-by: Sebastien Dugue <sebastien.dugue at bull.net>

---
 src/buf.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/buf.c b/src/buf.c
index bbaff12..a80bcb1 100644
--- a/src/buf.c
+++ b/src/buf.c
@@ -35,6 +35,8 @@
 #endif /* HAVE_CONFIG_H */
 
 #include <stdlib.h>
+#include <errno.h>
+#include <sys/mman.h>
 
 #include "mlx4.h"
 
-- 
1.6.3.1




More information about the general mailing list