changeset 11009:39ea4972093c

sys_stat: Include sys/types.h for nlink_t.
author Simon Josefsson <simon@josefsson.org>
date Wed, 14 Jan 2009 16:41:22 +0100
parents 65a347a25104
children 420e50c93999
files ChangeLog lib/sys_stat.in.h
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-14  Simon Josefsson  <simon@josefsson.org>
+
+	* lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
+	were sys/stat.h does not define it.
+
 2009-01-14  Jim Meyering  <meyering@redhat.com>
 
 	many *.m4 files: improve m4 quoting
--- a/lib/sys_stat.in.h
+++ b/lib/sys_stat.in.h
@@ -1,5 +1,5 @@
 /* Provide a more complete sys/stat header file.
-   Copyright (C) 2005-2008 Free Software Foundation, Inc.
+   Copyright (C) 2005-2009 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -35,6 +35,9 @@
 
 #ifndef _GL_SYS_STAT_H
 
+/* Get nlink_t.  */
+#include <sys/types.h>
+
 /* The include_next requires a split double-inclusion guard.  */
 #@INCLUDE_NEXT@ @NEXT_SYS_STAT_H@