summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-02-26 04:16:18 +0000
committerRoland McGrath <roland@gnu.org>2001-02-26 04:16:18 +0000
commit84fa419b6902ff32c8cfc9bc10af857856d1a519 (patch)
tree1bbe8edf192c286d5460a2a45e5265ac52b7be92
parentb40120e9d1b318cfb49631ad2b9fbd1615da8666 (diff)
2001-02-25 Roland McGrath <roland@frob.com>
* mkfs.c [!STANDALONE]: Include <time.h> for decl. * stati.c: Likewise.
-rw-r--r--ufs-utils/mkfs.c3
-rw-r--r--ufs-utils/stati.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ufs-utils/mkfs.c b/ufs-utils/mkfs.c
index e8513b70..1bfce2eb 100644
--- a/ufs-utils/mkfs.c
+++ b/ufs-utils/mkfs.c
@@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)mkfs.c 8.3 (Berkeley) 2/3/94";*/
-static char *rcsid = "$Id: mkfs.c,v 1.18 1998/10/20 09:46:39 roland Exp $";
+static char *rcsid = "$Id: mkfs.c,v 1.19 2001/02/26 04:16:18 roland Exp $";
#endif /* not lint */
#include <unistd.h>
@@ -90,6 +90,7 @@ static char *rcsid = "$Id: mkfs.c,v 1.18 1998/10/20 09:46:39 roland Exp $";
#ifndef STANDALONE
#include <a.out.h>
#include <stdio.h>
+#include <time.h>
#endif
/*
diff --git a/ufs-utils/stati.c b/ufs-utils/stati.c
index 2c0147d0..ba545bf2 100644
--- a/ufs-utils/stati.c
+++ b/ufs-utils/stati.c
@@ -61,6 +61,7 @@ static char sccsid[] __attribute__ ((unused));
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include <time.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
@@ -94,7 +95,7 @@ mode_rep (unsigned short mode)
case S_IFIFO: *p++ = 'f'; break;
default: *p++ = '?';
}
-
+
add_perms (0, S_ISUID);
add_perms (3, S_ISGID);
add_perms (6, 0);