changeset 12139:66ce99c59da1

areadlinkat: avoid compilation failure * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX. Fix typo in comment.
author Jim Meyering <meyering@redhat.com>
date Thu, 08 Oct 2009 16:40:49 +0200
parents e86f65584aae
children 5ebefc09b542
files ChangeLog lib/areadlinkat.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/areadlinkat.c
+++ b/lib/areadlinkat.c
@@ -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>