summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgtools/pkg_install/files/create/build.c7
-rw-r--r--pkgtools/pkg_install/files/create/util.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c
index 33744c8994e..97efb77cad4 100644
--- a/pkgtools/pkg_install/files/create/build.c
+++ b/pkgtools/pkg_install/files/create/build.c
@@ -1,4 +1,4 @@
-/* $NetBSD: build.c,v 1.3 2007/08/04 12:32:01 joerg Exp $ */
+/* $NetBSD: build.c,v 1.4 2007/08/08 12:21:14 tnn Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
#else
-__RCSID("$NetBSD: build.c,v 1.3 2007/08/04 12:32:01 joerg Exp $");
+__RCSID("$NetBSD: build.c,v 1.4 2007/08/08 12:21:14 tnn Exp $");
#endif
#endif
@@ -81,6 +81,9 @@ __RCSID("$NetBSD: build.c,v 1.3 2007/08/04 12:32:01 joerg Exp $");
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#include <archive.h>
#include <archive_entry.h>
diff --git a/pkgtools/pkg_install/files/create/util.c b/pkgtools/pkg_install/files/create/util.c
index 4f6f9e3e2c2..a542a401b09 100644
--- a/pkgtools/pkg_install/files/create/util.c
+++ b/pkgtools/pkg_install/files/create/util.c
@@ -57,6 +57,9 @@
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+#if HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
#include "lib.h"
#include "create.h"