summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-02-03 13:15:34 +0000
committerjoerg <joerg@pkgsrc.org>2009-02-03 13:15:34 +0000
commit18c82b7af1ccca50e2b870445c44f82eb0b6c70e (patch)
tree351eb115bbbd07b463ee1e0947abad66cf852ff1
parentc2cf5d824fb01f1f1404d1d11b096d1a2c9b4727 (diff)
downloadpkgsrc-18c82b7af1ccca50e2b870445c44f82eb0b6c70e.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.c7
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