[PATCH 7/9] Remove old MADV_DONTFORK/DOFORK compat

Jason Gunthorpe
2016-09-29T20:47:54Z

All supported distros have this now.

Signed-off-by: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
---
libibverbs/src/memory.c | 11 -----------
1 file changed, 11 deletions(-)

diff --git a/libibverbs/src/memory.c b/libibverbs/src/memory.c
index 8e728c4f61fc..5c8255d47c15 100644
--- a/libibverbs/src/memory.c
+++ b/libibverbs/src/memory.c
@@ -46,17 +46,6 @@

#include "ibverbs.h"

-/*
- * Most distro's headers don't have these yet.
- */
-#ifndef MADV_DONTFORK
-#define MADV_DONTFORK 10
-#endif
-
-#ifndef MADV_DOFORK
-#define MADV_DOFORK 11
-#endif
-
struct ibv_mem_node {
enum {
IBV_RED,
--
2.1.4