sys_stat: Include sys/types.h for nlink_t.
authorSimon Josefsson <simon@josefsson.org>
Wed, 14 Jan 2009 15:41:22 +0000 (16:41 +0100)
committerSimon Josefsson <simon@josefsson.org>
Wed, 14 Jan 2009 15:41:22 +0000 (16:41 +0100)
ChangeLog
lib/sys_stat.in.h

index 4e050e9..5178257 100644 (file)
--- 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
index a526833..da965d0 100644 (file)
@@ -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@