about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/at-fdcwd.patch
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-28 11:42:38 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-28 13:35:05 -0400
commita87b50bc6341c4539ee49fc6b1d14820b85a23db (patch)
tree554949714d440317693fa20576f3c572d49908a4 /pkgs/applications/editors/emacs/at-fdcwd.patch
parentac23a7c459d8f6035fcadcac274ff40f1e21a7e9 (diff)
downloadnixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar.gz
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar.bz2
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar.lz
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar.xz
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.tar.zst
nixlib-a87b50bc6341c4539ee49fc6b1d14820b85a23db.zip
emacs: readd version 25
Diffstat (limited to 'pkgs/applications/editors/emacs/at-fdcwd.patch')
-rw-r--r--pkgs/applications/editors/emacs/at-fdcwd.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/at-fdcwd.patch b/pkgs/applications/editors/emacs/at-fdcwd.patch
new file mode 100644
index 000000000000..2d8099b73736
--- /dev/null
+++ b/pkgs/applications/editors/emacs/at-fdcwd.patch
@@ -0,0 +1,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