Blame SOURCES/0106-mllib-Use-Unix.F_OK-instead-of-plain-F_OK.patch

e76f14
From 4e0b14a89cceb48b8ed1c63bcceb6a2c48dec167 Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Tue, 14 Jun 2016 18:54:44 +0100
e76f14
Subject: [PATCH] mllib: Use Unix.F_OK instead of plain F_OK.
e76f14
e76f14
Removes this warning:
e76f14
e76f14
  File "common_utils.ml", line 826, characters 24-28:
e76f14
  Warning 40: F_OK was selected from type Unix.access_permission.
e76f14
  It is not visible in the current scope, and will not
e76f14
  be selected if the type becomes unknown.
e76f14
e76f14
(cherry picked from commit 2ecdc46114f564a42f8d6c51c2c2763ba3dda15e)
e76f14
---
e76f14
 mllib/common_utils.ml | 2 +-
e76f14
 1 file changed, 1 insertion(+), 1 deletion(-)
e76f14
e76f14
diff --git a/mllib/common_utils.ml b/mllib/common_utils.ml
e76f14
index c29dfa0..be8810a 100644
e76f14
--- a/mllib/common_utils.ml
e76f14
+++ b/mllib/common_utils.ml
e76f14
@@ -827,7 +827,7 @@ let is_partition dev =
e76f14
       let major = Dev_t.major rdev in
e76f14
       let minor = Dev_t.minor rdev in
e76f14
       let path = sprintf "/sys/dev/block/%d:%d/partition" major minor in
e76f14
-      Unix.access path [F_OK];
e76f14
+      Unix.access path [Unix.F_OK];
e76f14
       true
e76f14
     )
e76f14
   with Unix.Unix_error _ -> false
e76f14
-- 
7af31e
1.8.3.1
e76f14