summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/at-fdcwd.patch
blob: 2d8099b737369890fbc4b1971aeda9317e32b2da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
index 84ede3e..8e8f42e 100644
--- a/lib/careadlinkat.h
+++ b/lib/careadlinkat.h
@@ -23,6 +23,10 @@
 #include <fcntl.h>
 #include <unistd.h>
 
+#ifndef AT_FDCWD
+#define AT_FDCWD -2
+#endif
+
 struct allocator;
 
 /* Assuming the current directory is FD, get the symbolic link value