graphics/evas: Improve conftest (Fixes DragonFly)

S_IRUSR and S_IWUSR are defined in <sys/stat.h> on DragonFly, but the
conftest for the Cache Server wasn't pulling that header in.  After
patching the conftest, the package builds normally.  There was no need
to patch the source itself, so it was a bad test.
This commit is contained in:
marino 2011-12-13 20:03:26 +00:00
parent 40698851f5
commit a8f462ec5a
3 changed files with 27 additions and 1 deletions

View file

@ -1,5 +1,7 @@
$NetBSD: distinfo,v 1.8 2011/12/05 17:33:32 joerg Exp $
$NetBSD: distinfo,v 1.9 2011/12/13 20:03:26 marino Exp $
SHA1 (evas-1.1.0.tar.bz2) = e09daebd5aa14ecdff94bca0ff30a4cf70b3b84b
RMD160 (evas-1.1.0.tar.bz2) = ebad0e5b4f3987ee9a29b39f329afb650eafeb20
Size (evas-1.1.0.tar.bz2) = 9235732 bytes
SHA1 (patch-configure) = 76c1e7dec71cf4505e0ac4b52b7187be1adaeabf
SHA1 (patch-configure.ac) = ab4c089e250ecc1acfb57e1b949b918bfc590608

View file

@ -0,0 +1,12 @@
$NetBSD: patch-configure,v 1.3 2011/12/13 20:03:26 marino Exp $
--- configure.orig 2011-12-13 18:08:17.000000000 +0000
+++ configure
@@ -19846,6 +19846,7 @@ $as_echo_n "checking whether shm_open()
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>

View file

@ -0,0 +1,12 @@
$NetBSD: patch-configure.ac,v 1.1 2011/12/13 20:03:26 marino Exp $
--- configure.ac.orig 2011-11-17 03:25:24.000000000 +0000
+++ configure.ac
@@ -569,6 +569,7 @@ if test "x${want_evas_cserve}" = "xyes"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[[
+#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>