Subject: [PATCH]: Fix compilation warning

From: Guy fleury <[email-masked]>
Date: Fri, 29 Mar 2019 14:24:03 +0100

hi guix,

this patch fix compilation warning of libstore.a
i don't know this is a right way to do that.i 'm not yet
a good ;)
From c20c3dbda40bfa9998ea0dd5396fda3951107d22 Mon Sep 17 00:00:00 2001
From: guy fleury iteriteka <[email-masked]>
Date: Fri, 29 Mar 2019 13:59:21 +0100
Subject: [PATCH] Fix compilation warning

* Use undef preprocessor to disable some macro defined
  in sys/mount.h and redefined in linux/fs.h.
---
 nix/libstore/local-store.cc | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc
index 892d930..bf38d8e 100644
--- a/nix/libstore/local-store.cc
+++ b/nix/libstore/local-store.cc
@@ -29,6 +29,44 @@
 #endif
 
 #if HAVE_LINUX_FS_H
+
+#undef BLKRASET
+#undef BLOCK_SIZE
+#undef MS_RDONLY
+#undef MS_NOSUID
+#undef MS_NODEV
+#undef MS_NOEXEC
+#undef MS_SYNCHRONOUS
+#undef MS_REMOUNT
+#undef MS_MANDLOCK
+#undef MS_DIRSYNC
+#undef MS_NOATIME
+#undef MS_NODIRATIME
+#undef MS_BIND
+#undef MS_MOVE
+#undef MS_REC
+#undef MS_SILENT
+#undef MS_POSIXACL
+#undef MS_UNBINDABLE
+#undef MS_PRIVATE
+#undef MS_SLAVE
+#undef MS_SHARED
+#undef MS_RELATIME
+#undef MS_KERNMOUNT
+#undef MS_I_VERSION
+#undef MS_STRICTATIME
+#undef MS_LAZYTIME
+#undef MS_ACTIVE
+#undef MS_NOUSER
+#undef MS_RMT_MASK
+#undef MS_MGC_VAL
+#undef BLKROSET
+#undef BLKROGET
+#undef BLKRRPART
+#undef BLKGETSIZE
+#undef BLKFLSBUF
+#undef BLKRAGET
+
 #include <linux/fs.h>
 #include <sys/ioctl.h>
 #include <errno.h>
-- 
2.20.1