summaryrefslogtreecommitdiff
path: root/lib/savewd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-09-17 16:51:01 +0000
committerJim Meyering <jim@meyering.net>2007-09-17 16:51:01 +0000
commitdf048d4832c6fd12fa145c4a661e1ca14a95399b (patch)
treedeefae7a0e21c9665fd13aac4b169f1d7e9fe98b /lib/savewd.c
parent32ef00cd5f86d5b98cc5833be7830e3621e0c39b (diff)
downloadgnulib-df048d4832c6fd12fa145c4a661e1ca14a95399b.tar.gz
* lib/savewd.c (ESTALE) [!defined]: Define.
Reported to be required on Interix by Martin Koeppe.
Diffstat (limited to 'lib/savewd.c')
-rw-r--r--lib/savewd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/savewd.c b/lib/savewd.c
index 9af3085c97..ca538a9fb5 100644
--- a/lib/savewd.c
+++ b/lib/savewd.c
@@ -35,6 +35,9 @@
#include "dirname.h"
#include "fcntl-safer.h"
+#ifndef ESTALE
+# define ESTALE -1
+#endif
/* Save the working directory into *WD, if it hasn't been saved
already. Return true if a child has been forked to do the real