# HG changeset patch # User Simon Josefsson # Date 1312543637 -7200 # Node ID 399fbe0ffbc26e78dd78fbe78a43f1c1fc522db6 # Parent 7ed7c0ea6e5fb2b61090698c15230fb6a3a91d3c openat: Fix warnings and commens when building unlinkat.c on Hurd. * lib/unlinkat.c: Mention Hurd in comments. Include stdlib.h to get prototype for free. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-08-05 Simon Josefsson + + openat: Fix warnings and commens when building unlinkat.c on Hurd. + * lib/unlinkat.c: Mention Hurd in comments. Include stdlib.h to + get prototype for free. + 2011-08-04 Bruno Haible Tests for module 'pathmax'. diff --git a/lib/unlinkat.c b/lib/unlinkat.c --- 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. @@ -26,6 +26,8 @@ #include #include +#include + #include "dosname.h" #include "openat.h" @@ -34,7 +36,8 @@ # 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)