aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Dugue <sebastien.dugue@bull.net>2009-08-03 15:40:01 +0200
committerRoland Dreier <rolandd@cisco.com>2009-08-03 13:45:33 -0700
commitcf744a2ef8343e5f74f9c59de3990e3e46ec301c (patch)
treef876ff35a4925ba2a5b06fc86761e5fdd90e7d44
parent87750d1db4bc73933e92d862ff73d10d06ff4f5d (diff)
downloadlibmlx4-cf744a2ef8343e5f74f9c59de3990e3e46ec301c.tar.gz
mmap() needs some includes
Add errno.h and sys/mman.h includes in buf.c for mmap(). The includes were left out of 87750d1d ("Use mmap(MAP_ANONYMOUS) to allocate queue buffers") by mistake. Signed-off-by: Sebastien Dugue <sebastien.dugue@bull.net> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/buf.c2
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"