mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
emacs|emacs25pre: Check AT_FDCWD is not defined before define it
https://github.com/NixOS/nixpkgs/issues/11723
This commit is contained in:
parent
7c19b395eb
commit
b8b15ca2a3
@ -1,12 +1,14 @@
|
|||||||
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
|
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
|
||||||
index 5cdb813..7a272e8 100644
|
index 84ede3e..8e8f42e 100644
|
||||||
--- a/lib/careadlinkat.h
|
--- a/lib/careadlinkat.h
|
||||||
+++ b/lib/careadlinkat.h
|
+++ b/lib/careadlinkat.h
|
||||||
@@ -23,6 +23,8 @@
|
@@ -23,6 +23,10 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
+#ifndef AT_FDCWD
|
||||||
+#define AT_FDCWD -2
|
+#define AT_FDCWD -2
|
||||||
|
+#endif
|
||||||
+
|
+
|
||||||
struct allocator;
|
struct allocator;
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
|
diff --git a/lib/careadlinkat.h b/lib/careadlinkat.h
|
||||||
index 5cdb813..7a272e8 100644
|
index 84ede3e..8e8f42e 100644
|
||||||
--- a/lib/careadlinkat.h
|
--- a/lib/careadlinkat.h
|
||||||
+++ b/lib/careadlinkat.h
|
+++ b/lib/careadlinkat.h
|
||||||
@@ -23,6 +23,8 @@
|
@@ -23,6 +23,10 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
+#ifndef AT_FDCWD
|
||||||
+#define AT_FDCWD -2
|
+#define AT_FDCWD -2
|
||||||
|
+#endif
|
||||||
+
|
+
|
||||||
struct allocator;
|
struct allocator;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user