openat: avoid compilation failure due to lack of <errno.h> inclusion
authorDagobert Michelsen <dam@opencsw.org>
Fri, 18 Nov 2011 13:02:51 +0000 (14:02 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Nov 2011 13:03:38 +0000 (14:03 +0100)
* lib/openat.c: Include <errno.h>.

ChangeLog
lib/openat.c

index a373317..e8ac873 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
+
+       openat: avoid compilation failure due to lack of <errno.h> inclusion
+       * lib/openat.c: Include <errno.h>.
+
 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        * modules/getcwd (Depends-on): Add fdopendir.
index 3225326..354ff80 100644 (file)
@@ -46,6 +46,7 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode)
 #include <stddef.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <errno.h>
 
 #if HAVE_OPENAT