about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/physics/rivet/darwin.patch
blob: 2d397f1da6cab0d16f3d2cbbd45e1f9c189a1bdc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/include/Rivet/Tools/osdir.hh b/include/Rivet/Tools/osdir.hh
index 05f06ca..59af7de 100644
--- a/include/Rivet/Tools/osdir.hh
+++ b/include/Rivet/Tools/osdir.hh
@@ -21,7 +21,7 @@
 
 /// @cond OSDIR
 
-#if defined(unix) || defined(__unix) || defined(__unix__)
+#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
 #define OSLINK_OSDIR_POSIX
 #elif defined(_WIN32)
 #define OSLINK_OSDIR_WINDOWS
@@ -32,18 +32,7 @@
 #include <string>
 
 #if defined(OSLINK_OSDIR_NOTSUPPORTED)
-
-namespace oslink
-{
-	class directory
-	{
-		public:
-			directory(const std::string&)		{ }
-			operator void*() const				{ return (void*)0; }
-			std::string next()					{ return ""; }
-	};
-}
-
+#error Platform misdetected or oslink is not implemented
 #elif defined(OSLINK_OSDIR_POSIX)
 
 #include <sys/types.h>