summaryrefslogtreecommitdiff
path: root/src/errno_dragonfly.c
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2017-12-19 15:23:50 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2017-12-19 15:23:50 +0000
commitb68db41543d16d862e07ddbd143f43b92533d60b (patch)
treeab1f601bc9e67bc31ef833dcebc973b9ee899b67 /src/errno_dragonfly.c
parent291d618322a360e2b3ac99ca7c1fde19ba6b4b2c (diff)
parent709cbdf12cacb6ecf42cca9000d1d46380b6ba62 (diff)
downloadnix-b68db41543d16d862e07ddbd143f43b92533d60b.zip
Merge #799
799: Fix nix on Dragonfly r=Susurrus a=mneumann This commit replaces pull request https://github.com/nix-rust/nix/pull/684. It fixes building `nix` on DragonFly. All tests pass. This requires most recent libc to build: https://github.com/rust-lang/libc/pull/851.
Diffstat (limited to 'src/errno_dragonfly.c')
-rw-r--r--src/errno_dragonfly.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errno_dragonfly.c b/src/errno_dragonfly.c
new file mode 100644
index 00000000..32fb4dab
--- /dev/null
+++ b/src/errno_dragonfly.c
@@ -0,0 +1,3 @@
+#include <errno.h>
+
+int *errno_location() { return &errno; }