]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(HAVE_DECL_STRMODE): Include <string.h> for strmode.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:21:30 +0000 (23:21 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:21:30 +0000 (23:21 +0000)
(strmode): Renamed from mode_string.
(filemodestring): New decl.

lib/filemode.h

index 5d3da67035d98e8e1a6cb3b916f62940399367a9..47167367b091730ab9cdef3ed346ec5cee2a34ac 100644 (file)
@@ -1,6 +1,6 @@
 /* Make a string describing file modes.
 
-   Copyright (C) 1998, 1999, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2003, 2006 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
 #ifndef FILEMODE_H_
 
 # include <sys/types.h>
+# include <sys/stat.h>
 
-void mode_string (mode_t mode, char *str);
+# if HAVE_DECL_STRMODE
+#  include <string.h>
+# else
+void strmode (mode_t mode, char *str);
+# endif
+
+void filemodestring (struct stat const *statp, char *str);
 
 #endif