changeset 5892:775304dec11d

Remove redundant include.
author Bruno Haible <bruno@clisp.org>
date Fri, 27 May 2005 12:30:08 +0000
parents b24317d45623
children a1680eb6e59e
files lib/ChangeLog lib/getlogin_r.h
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2005-05-27  Bruno Haible  <bruno@clisp.org>
+
+	* getlogin_r.h: Remove second include of <stddef.h>.
+
 2005-05-25  Bruno Haible  <bruno@clisp.org>
 	    Derek Price  <derek@ximbiot.com>
 
--- a/lib/getlogin_r.h
+++ b/lib/getlogin_r.h
@@ -18,11 +18,12 @@
 
 /* Written by Paul Eggert and Derek Price.  */
 
+#include <stddef.h>
+
 #if HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 
-#if !HAVE_DECL_GETLOGIN_R
 /* Copies the user's login name to NAME.
    The array pointed to by NAME has room for SIZE bytes.
 
@@ -32,6 +33,6 @@
 
    See <http://www.opengroup.org/onlinepubs/009695399/functions/getlogin.html>.
  */
-# include <stddef.h>
+#if !HAVE_DECL_GETLOGIN_R
 int getlogin_r (char *name, size_t size);
 #endif