mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-05 19:43:07 +02:00
povray: fix musl build
This commit is contained in:
parent
4cb47ec15f
commit
12055fbcb8
2 changed files with 41 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
--- a/vfe/vfesession.h 2019-01-30 18:47:18.816545460 +0100
|
--- a/vfe/vfesession.h
|
||||||
+++ b/vfe/vfesession.h 2019-01-30 18:47:18.816545460 +0100
|
+++ b/vfe/vfesession.h
|
||||||
@@ -40,6 +40,8 @@
|
@@ -40,6 +40,8 @@
|
||||||
|
|
||||||
#include "base/image/colourspace.h"
|
#include "base/image/colourspace.h"
|
||||||
|
@ -9,3 +9,40 @@
|
||||||
namespace vfe
|
namespace vfe
|
||||||
{
|
{
|
||||||
using namespace pov_frontend;
|
using namespace pov_frontend;
|
||||||
|
--- a/source/base/image/image.cpp
|
||||||
|
+++ b/source/base/image/image.cpp
|
||||||
|
@@ -36,6 +36,7 @@
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
|
||||||
|
|
||||||
|
// configbase.h must always be the first POV file included within base *.cpp files
|
||||||
|
@@ -2829,7 +2830,7 @@ class FileBackedPixelContainer
|
||||||
|
meta[0] = sizeof(pixel_type);
|
||||||
|
meta[1] = m_Width;
|
||||||
|
meta[2] = m_Height;
|
||||||
|
- if (lseek64(m_File, pos, SEEK_SET) != pos)
|
||||||
|
+ if (lseek(m_File, pos, SEEK_SET) != pos)
|
||||||
|
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write/seek failed at creation.");
|
||||||
|
if (write(m_File, &meta[0], (int) sizeof(size_type)*3) != (sizeof(size_type)*3))
|
||||||
|
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write failed at creation.");
|
||||||
|
@@ -3000,7 +3001,7 @@ class FileBackedPixelContainer
|
||||||
|
#endif
|
||||||
|
pos = block * sizeof(pixel_type) * m_Blocksize;
|
||||||
|
int chunk = sizeof(pixel_type) * m_Blocksize;
|
||||||
|
- if (lseek64(m_File, pos, SEEK_SET) != pos)
|
||||||
|
+ if (lseek(m_File, pos, SEEK_SET) != pos)
|
||||||
|
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file read/seek failed.");
|
||||||
|
int bytes = read(m_File, &m_Buffer[0], chunk);
|
||||||
|
if (bytes != (sizeof(pixel_type) * m_Blocksize))
|
||||||
|
@@ -3023,7 +3024,7 @@ class FileBackedPixelContainer
|
||||||
|
|
||||||
|
if (m_Dirty) {
|
||||||
|
pos = m_CurrentBlock * sizeof(pixel_type) * m_Blocksize;
|
||||||
|
- if (lseek64(m_File, pos, SEEK_SET) != pos)
|
||||||
|
+ if (lseek(m_File, pos, SEEK_SET) != pos)
|
||||||
|
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write/seek failed.");
|
||||||
|
if (write(m_File, &m_Buffer[0], (int) sizeof(pixel_type) * m_Blocksize) != (sizeof(pixel_type) * m_Blocksize))
|
||||||
|
throw POV_EXCEPTION(kFileDataErr, "Intermediate image storage backing file write failed.");
|
||||||
|
|
|
@ -21,6 +21,8 @@ checksum=53d11ebd2972fc452af168a00eb83aefb61387662c10784e81b63e44aa575de4
|
||||||
nocross="Builds fail on ARM architectures
|
nocross="Builds fail on ARM architectures
|
||||||
Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
|
Logs are at https://travis-ci.org/void-linux/void-packages/builds/412583835."
|
||||||
LDFLAGS+=" -Wl,-z,stack-size=1048576"
|
LDFLAGS+=" -Wl,-z,stack-size=1048576"
|
||||||
|
CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
|
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
cd $wrksrc/unix
|
cd $wrksrc/unix
|
||||||
|
|
Loading…
Add table
Reference in a new issue