summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1996-06-11 02:14:01 +0000
committerjtc <jtc@NetBSD.org>1996-06-11 02:14:01 +0000
commit0f222262eeb28c8a5e856bfffd871e3ab5ec5a6d (patch)
treebc7c29a3a23133315bae1493ca5ee1a53fc51979 /include
parent95f26583aab722ad754e8ae14706f37305ceaeeb (diff)
POSIX.1 requires programs to include <sys/types.h> before including
<grp.h> or <utime.h> while XPG4.2 makes <sys/types.h> optional. So I've included <sys/types.h> to provide the XPG4.2 behavior.
Diffstat (limited to 'include')
-rw-r--r--include/grp.h7
-rw-r--r--include/utime.h7
2 files changed, 8 insertions, 6 deletions
diff --git a/include/grp.h b/include/grp.h
index 2fe6ca9b525..ccc460b897a 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -1,4 +1,4 @@
-/* $NetBSD: grp.h,v 1.7 1995/04/29 05:30:40 cgd Exp $ */
+/* $NetBSD: grp.h,v 1.8 1996/06/11 02:14:01 jtc Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -43,6 +43,9 @@
#ifndef _GRP_H_
#define _GRP_H_
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
#define _PATH_GROUP "/etc/group"
#endif
@@ -54,8 +57,6 @@ struct group {
char **gr_mem; /* group members */
};
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
struct group *getgrgid __P((gid_t));
struct group *getgrnam __P((const char *));
diff --git a/include/utime.h b/include/utime.h
index 7085a30d238..fd2b73cc15c 100644
--- a/include/utime.h
+++ b/include/utime.h
@@ -1,4 +1,4 @@
-/* $NetBSD: utime.h,v 1.3 1994/10/26 00:56:39 cgd Exp $ */
+/* $NetBSD: utime.h,v 1.4 1996/06/11 02:14:05 jtc Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -38,13 +38,14 @@
#ifndef _UTIME_H_
#define _UTIME_H_
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
struct utimbuf {
time_t actime; /* Access time */
time_t modtime; /* Modification time */
};
-#include <sys/cdefs.h>
-
__BEGIN_DECLS
int utime __P((const char *, const struct utimbuf *));
__END_DECLS