diff options
author | tnn <tnn@pkgsrc.org> | 2007-08-08 12:21:14 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2007-08-08 12:21:14 +0000 |
commit | 8629b7a0f58866c6f3b0a62badc806fa181fdc15 (patch) | |
tree | d93ff4d3337ec163fb29134d8b96ba5191335828 /pkgtools/pkg_install/files/create | |
parent | 432bcc8ec27739e558db1ba9f2ca2969d6ffc9e1 (diff) | |
download | pkgsrc-8629b7a0f58866c6f3b0a62badc806fa181fdc15.tar.gz |
Fix build on Solaris by including fcntl.h, needed for O_RDONLY definition.
Diffstat (limited to 'pkgtools/pkg_install/files/create')
-rw-r--r-- | pkgtools/pkg_install/files/create/build.c | 7 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/create/util.c | 3 |
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" |