Skip to contentSkip to conversation

ndctl, autoconf: include sys/mman.h for MAP_SYNC

PATCH New Vishal Verma 1 participant 1 message Aug 14, 2018 libnvdimm: non-volatile memory device

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

PATCH 1/1 ndctl, autoconf: include sys/mman.h for MAP_SYNC

Commit 94679e6b78aa ("ndctl, test: check availability of MAP_SYNC for poison test") added a MAP_SYNC gate for checking its availability at build time. However the check included linux/mman.h, where as the canonical location for MAP_SYNC should be sys/mman.h.

Fixes 94679e6b78aa ("ndctl, test: check availability of MAP_SYNC for poison test")
Cc Dan Williams <[email protected]>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 4441a44..00178bb 100644
@@ -103,7 +103,7 @@ AS_IF([test "x$enable_test" = "xyes"],
 AM_CONDITIONAL([ENABLE_TEST], [test "x$enable_test" = "xyes"])
 
 AC_CHECK_DECLS([BUS_MCEERR_AR], [enable_bus_mc_err=yes], [], [[#include <signal.h>]])
-AC_CHECK_DECLS([MAP_SYNC], [enable_map_sync=yes], [], [[#include <linux/mman.h>]])
+AC_CHECK_DECLS([MAP_SYNC], [enable_map_sync=yes], [], [[#include <sys/mman.h>]])
 
 AS_IF([test "x$enable_bus_mc_err" = "xyes" -a "x$enable_map_sync" = "xyes"],
 	[AC_DEFINE([ENABLE_POISON], [1], [ndctl test poison support])])
Signature · 6 lines
2.14.4

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm