projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: log cherry-pick [ae006b4]->[4a9738e] strtoimax: Avoid link error on...
[gnulib.git]
/
lib
/
unlinkat.c
diff --git
a/lib/unlinkat.c
b/lib/unlinkat.c
index
9f1894a
..
bae6642
100644
(file)
--- a/
lib/unlinkat.c
+++ b/
lib/unlinkat.c
@@
-1,4
+1,4
@@
-/* Work around unlinkat bugs on Solaris 9.
+/* Work around unlinkat bugs on Solaris 9
and Hurd
.
Copyright (C) 2009-2011 Free Software Foundation, Inc.
Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@
-26,6
+26,9
@@
#include <string.h>
#include <sys/stat.h>
#include <string.h>
#include <sys/stat.h>
+#include <stdlib.h>
+
+#include "dosname.h"
#include "openat.h"
#if HAVE_UNLINKAT
#include "openat.h"
#if HAVE_UNLINKAT
@@
-33,7
+36,8
@@
# undef unlinkat
/* unlinkat without AT_REMOVEDIR does not honor trailing / on Solaris
# undef unlinkat
/* unlinkat without AT_REMOVEDIR does not honor trailing / on Solaris
- 9. Solve it in a similar manner to unlink. */
+ 9. Solve it in a similar manner to unlink. Hurd has the same
+ issue. */
int
rpl_unlinkat (int fd, char const *name, int flag)
int
rpl_unlinkat (int fd, char const *name, int flag)