From d1a8cb445673011881595efa617eeebab09c73c4 Mon Sep 17 00:00:00 2001 From: rillig Date: Sun, 17 Sep 2006 22:33:36 +0000 Subject: Added a patch that fixes the build on Solaris with SunPro. --- graphics/povray/distinfo | 3 ++- graphics/povray/patches/patch-ag | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 graphics/povray/patches/patch-ag (limited to 'graphics/povray') diff --git a/graphics/povray/distinfo b/graphics/povray/distinfo index 7ad0928bfb1..a7d218e93e9 100644 --- a/graphics/povray/distinfo +++ b/graphics/povray/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.12 2006/09/08 08:28:06 joerg Exp $ +$NetBSD: distinfo,v 1.13 2006/09/17 22:33:36 rillig Exp $ SHA1 (povray-3.6.1.tar.bz2) = 1fab3ccbdedafbf77e3a66087709bbdf60bc643d RMD160 (povray-3.6.1.tar.bz2) = 84ba679da66089f192cc1bfcf8bdd498e736a9a3 @@ -6,3 +6,4 @@ Size (povray-3.6.1.tar.bz2) = 8200160 bytes SHA1 (patch-aa) = 351e2eb509cdb3e95c788de5f9ff41c993d4363d SHA1 (patch-ad) = fa4056ca956cb2872960fcb649e259aad1f065e4 SHA1 (patch-af) = b941ffe6f1f54b5bc6139ec2b7fba480f6393bf1 +SHA1 (patch-ag) = 67ad332366614e60b0842572d7d07debe8b6e8f2 diff --git a/graphics/povray/patches/patch-ag b/graphics/povray/patches/patch-ag new file mode 100644 index 00000000000..9848324fd2e --- /dev/null +++ b/graphics/povray/patches/patch-ag @@ -0,0 +1,26 @@ +$NetBSD: patch-ag,v 1.1 2006/09/17 22:33:36 rillig Exp $ + +SunPro is a little picky about the places in which the "const" qualifier +is significant, so make sure that the function prototypes match their +declarations in the header file. + +--- unix/unix.cpp.orig 2006-09-18 00:17:03.513608780 +0200 ++++ unix/unix.cpp 2006-09-18 00:20:40.589099772 +0200 +@@ -1892,7 +1892,7 @@ static bool unix_subdir (const char *Fil + * + ******************************************************************************/ + +-int UNIX_allow_file_read (const char *Filename, const unsigned int FileType) ++int UNIX_allow_file_read (const char *Filename, unsigned int FileType) + { + char *filename; + const char *errormsg; +@@ -1966,7 +1966,7 @@ int UNIX_allow_file_read (const char *Fi + * + ******************************************************************************/ + +-int UNIX_allow_file_write (const char *Filename, const unsigned int FileType) ++int UNIX_allow_file_write (const char *Filename, unsigned int FileType) + { + char *filename; + const char *errormsg; -- cgit v1.2.3