changeset 1816:6dfbec8a5a2d

<config.h>, <sys/types.h>: Include for mode_t. (mode_string): Now takes mode_t.
author Jim Meyering <jim@meyering.net>
date Mon, 26 Apr 1999 13:13:36 +0000
parents 9de6ea676212
children 4682d93c9b1a
files lib/filemode.h
diffstat 1 files changed, 17 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lib/filemode.h
+++ b/lib/filemode.h
@@ -1,9 +1,19 @@
-#ifndef PARAMS
-# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
-#  define PARAMS(Args) Args
-# else
-#  define PARAMS(Args) ()
+#ifndef FILEMODE_H_
+
+# if HAVE_CONFIG_H
+#  include <config.h>
 # endif
-#endif
+
+# include <sys/types.h>
 
-void mode_string PARAMS ((short unsigned int mode, char *str));
+# ifndef PARAMS
+#  if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+#   define PARAMS(Args) Args
+#  else
+#   define PARAMS(Args) ()
+#  endif
+# endif
+
+void mode_string PARAMS ((mode_t mode, char *str));
+
+#endif