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