]> git.lizzy.rs Git - rust.git/blobdiff - src/rt/rust_builtin.c
auto merge of #15999 : Kimundi/rust/fix_folder, r=nikomatsakis
[rust.git] / src / rt / rust_builtin.c
index ed077e69978a9416b2fcd8ff72da3573e33cad00..89cb27c1f1ae1473aa32a8b166f9df88c7586d46 100644 (file)
@@ -70,7 +70,7 @@ extern char **environ;
 #endif
 #endif
 
-#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__)
+#if defined(__FreeBSD__) || defined(__linux__) || defined(__ANDROID__) || defined(__DragonFly__)
 extern char **environ;
 #endif
 
@@ -357,6 +357,13 @@ rust_unset_sigprocmask() {
 
 #endif
 
+#if defined(__DragonFly__)
+#include <errno.h>
+// In DragonFly __error() is an inline function and as such
+// no symbol exists for it.
+int *__dfly_error(void) { return __error(); }
+#endif
+
 //
 // Local Variables:
 // mode: C++