summaryrefslogtreecommitdiff
path: root/pkgtools/mtree/files/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/mtree/files/create.c')
-rw-r--r--pkgtools/mtree/files/create.c51
1 files changed, 40 insertions, 11 deletions
diff --git a/pkgtools/mtree/files/create.c b/pkgtools/mtree/files/create.c
index 41bc14c9bc8..d948eb0a40a 100644
--- a/pkgtools/mtree/files/create.c
+++ b/pkgtools/mtree/files/create.c
@@ -1,4 +1,4 @@
-/* $NetBSD: create.c,v 1.1.1.1 2003/03/31 08:51:10 grant Exp $ */
+/* $NetBSD: create.c,v 1.2 2003/09/05 04:38:47 grant Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -12,11 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -33,47 +29,80 @@
* SUCH DAMAGE.
*/
-#include "nbcompat.h"
-
-#ifdef HAVE_SYS_CDEFS_H
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <nbcompat.h>
+#if HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
#endif
-
#if defined(__RCSID) && !defined(lint)
#if 0
static char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: create.c,v 1.1.1.1 2003/03/31 08:51:10 grant Exp $");
+__RCSID("$NetBSD: create.c,v 1.2 2003/09/05 04:38:47 grant Exp $");
#endif
#endif /* not lint */
+#if HAVE_SYS_PARAM_H
#include <sys/param.h>
+#endif
+#if HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#if !HAVE_CONFIG_H
+#if HAVE_DIRENT_H
#include <dirent.h>
#endif
+#endif
+#if HAVE_ERRNO_H
#include <errno.h>
+#endif
+#if HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+#if HAVE_GRP_H
#include <grp.h>
+#endif
+#if HAVE_PWD_H
#include <pwd.h>
+#endif
+#if HAVE_STDIO_H
#include <stdio.h>
+#endif
+#if HAVE_STDARG_H
#include <stdarg.h>
+#endif
+#if HAVE_STDLIB_H
#include <stdlib.h>
+#endif
+#if HAVE_STRING_H
#include <string.h>
+#endif
+#if HAVE_TIME_H
#include <time.h>
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifndef NO_MD5
+#if HAVE_MD5_H
#include <md5.h>
#endif
+#endif
#ifndef NO_RMD160
+#if HAVE_RMD160_H
#include <rmd160.h>
#endif
+#endif
#ifndef NO_SHA1
+#if HAVE_SHA1_H
#include <sha1.h>
#endif
+#endif
#include "extern.h"