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 dedcfc8..3af4f51 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 5e8bf9d..07714d0 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>