pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/create Fix build on Solaris...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6acf63e7aa68
branches:  trunk
changeset: 531890:6acf63e7aa68
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Wed Aug 08 12:21:14 2007 +0000

description:
Fix build on Solaris by including fcntl.h, needed for O_RDONLY definition.

diffstat:

 pkgtools/pkg_install/files/create/build.c |  7 +++++--
 pkgtools/pkg_install/files/create/util.c  |  3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (41 lines):

diff -r 907741122cef -r 6acf63e7aa68 pkgtools/pkg_install/files/create/build.c
--- a/pkgtools/pkg_install/files/create/build.c Wed Aug 08 12:19:54 2007 +0000
+++ b/pkgtools/pkg_install/files/create/build.c Wed Aug 08 12:21:14 2007 +0000
@@ -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 @@
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#if HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
 
 #include <archive.h>
 #include <archive_entry.h>
diff -r 907741122cef -r 6acf63e7aa68 pkgtools/pkg_install/files/create/util.c
--- a/pkgtools/pkg_install/files/create/util.c  Wed Aug 08 12:19:54 2007 +0000
+++ b/pkgtools/pkg_install/files/create/util.c  Wed Aug 08 12:21:14 2007 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index