summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs-24/at-fdcwd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/editors/emacs-24/at-fdcwd.patch')
-rw-r--r--pkgs/applications/editors/emacs-24/at-fdcwd.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-24/at-fdcwd.patch b/pkgs/applications/editors/emacs-24/at-fdcwd.patch
new file mode 100644
index 00000000000..1f99d4e1809
--- /dev/null
+++ b/pkgs/applications/editors/emacs-24/at-fdcwd.patch
@@ -0,0 +1,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