diff options
author | joerg <joerg@pkgsrc.org> | 2009-02-03 13:15:34 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-02-03 13:15:34 +0000 |
commit | c5349bbb207efac354443d9154e2784823c37c7f (patch) | |
tree | 351eb115bbbd07b463ee1e0947abad66cf852ff1 | |
parent | 3abc5e5bc1253a305c69f5dfd1e518a1d64ca0b4 (diff) | |
download | pkgsrc-c5349bbb207efac354443d9154e2784823c37c7f.tar.gz |
Include fcntl.h for O_RDONLY, it is included indirectly on NetBSD, but
not on Solaris. Part of PR 40544.
-rw-r--r-- | pkgtools/pkg_install/files/create/perform.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/create/perform.c b/pkgtools/pkg_install/files/create/perform.c index 5389f7e1d61..c2e2961d3fc 100644 --- a/pkgtools/pkg_install/files/create/perform.c +++ b/pkgtools/pkg_install/files/create/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.23 2009/02/02 12:35:01 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.24 2009/02/03 13:15:34 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -7,7 +7,7 @@ #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: perform.c,v 1.23 2009/02/02 12:35:01 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.24 2009/02/03 13:15:34 joerg Exp $"); /* * FreeBSD install - a package for the installation and maintainance @@ -35,6 +35,9 @@ __RCSID("$NetBSD: perform.c,v 1.23 2009/02/02 12:35:01 joerg Exp $"); #if HAVE_ERR_H #include <err.h> #endif +#if HAVE_FCNTL_H +#include <fcntl.h> +#endif #if HAVE_UNISTD_H #include <unistd.h> #endif |