areadlinkat: avoid compilation failure
authorJim Meyering <meyering@redhat.com>
Thu, 8 Oct 2009 14:40:49 +0000 (16:40 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 8 Oct 2009 14:40:49 +0000 (16:40 +0200)
* lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
Fix typo in comment.

ChangeLog
lib/areadlinkat.c

index dedcfc85ab242354a487d9fb4dbb7dbaa72b98f8..3af4f512099c11f1001042751ea2b8bb3e6287e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-08  Jim Meyering  <meyering@redhat.com>
+
+       areadlinkat: avoid compilation failure
+       * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
+       Fix typo in comment.
+
 2009-10-07  Eric Blake  <ebb9@byu.net>
 
        areadlinkat-with-size: new module
index 5e8bf9d2ab9e3781616e0d150853b3d29b1cc74f..07714d0a9e94c7d37b0482daea3caf49a9d66ed9 100644 (file)
@@ -1,4 +1,4 @@
-/* areadlink.c -- readlink wrapper to return the link name in malloc'd storage
+/* areadlinkat.c -- readlinkat wrapper to return malloc'd link name
    Unlike xreadlinkat, only call exit on failure to change directory.
 
    Copyright (C) 2001, 2003-2007, 2009 Free Software Foundation, Inc.
@@ -29,6 +29,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <sys/types.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>