From e30235a9dcb66348c86e0f0b15be3563facb54dd Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Wed, 10 Feb 2016 18:33:32 +0000
Subject: [PATCH] Fix problem with non-existing errno values on apple

---
 DDCore/src/Errors.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/DDCore/src/Errors.cpp b/DDCore/src/Errors.cpp
index e4d3c0f16..9900c51d2 100644
--- a/DDCore/src/Errors.cpp
+++ b/DDCore/src/Errors.cpp
@@ -28,7 +28,12 @@ namespace DD4hep { namespace Errors  {
     IMPLEMENT(ioError,EIO)              //  5
     IMPLEMENT(invalidArg,EINVAL)        // 22
     IMPLEMENT(noSys,ENOSYS)             // 38
-    IMPLEMENT(linkRange,ELNRNG)         // 48
     IMPLEMENT(cancelled,ECANCELED)      // 125
+#ifdef __apple__
+    IMPLEMENT(linkRange,EINVAL)         // 48  does not exist on apple
+    IMPLEMENT(noKey,EINVAL)             // 126 does not exist on apple
+#else
+    IMPLEMENT(linkRange,ELNRNG)         // 48
     IMPLEMENT(noKey,ENOKEY)             // 126
+#endif
   }}
-- 
GitLab