summaryrefslogtreecommitdiff
path: root/lib/filemode.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-04-26 13:13:36 +0000
committerJim Meyering <jim@meyering.net>1999-04-26 13:13:36 +0000
commitd1e59e17e75f23e3e5ee2bb4fa7623bf4b6bca7f (patch)
tree4733f7c23c535aaaa5926fc03903c74cebdb7850 /lib/filemode.h
parent9afd1dd6927975bf3cfdcfebf21c3d768a0a4825 (diff)
downloadcoreutils-d1e59e17e75f23e3e5ee2bb4fa7623bf4b6bca7f.tar.xz
<config.h>, <sys/types.h>: Include for mode_t.
(mode_string): Now takes mode_t.
Diffstat (limited to 'lib/filemode.h')
-rw-r--r--lib/filemode.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/lib/filemode.h b/lib/filemode.h
index 162e07a0d..5b19db236 100644
--- 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
-void mode_string PARAMS ((short unsigned int mode, char *str));
+# include <sys/types.h>
+
+# 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