mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
* A bug fix (patch-open.c).
* Bump portrevision. Submitted by: maintainer
This commit is contained in:
parent
4b85a44a4a
commit
a542225cc6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188215
2 changed files with 30 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= inventor
|
PORTNAME= inventor
|
||||||
PORTVERSION= 2.1.5.p10
|
PORTVERSION= 2.1.5.p10
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ftp://oss.sgi.com/projects/inventor/download/
|
MASTER_SITES= ftp://oss.sgi.com/projects/inventor/download/
|
||||||
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-/}
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-/}
|
||||||
|
|
29
graphics/inventor/files/patch-open.c
Normal file
29
graphics/inventor/files/patch-open.c
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
--- libimage/open.c.orig Sat Oct 14 12:46:09 2000
|
||||||
|
+++ libimage/open.c Sat Mar 24 20:27:50 2007
|
||||||
|
@@ -8,6 +8,17 @@
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include "image.h"
|
||||||
|
|
||||||
|
+#ifdef __FreeBSD__
|
||||||
|
+ #include <machine/endian.h>
|
||||||
|
+ #if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
|
+ #define DOREV 1
|
||||||
|
+ #else
|
||||||
|
+ #define DOREV 0
|
||||||
|
+ #endif
|
||||||
|
+#else
|
||||||
|
+ #define DOREV 0
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
void cvtlongs(int buffer[],int n);
|
||||||
|
void cvtimage(int buffer[]);
|
||||||
|
void i_seterror(void (*func)());
|
||||||
|
@@ -80,7 +91,7 @@
|
||||||
|
image->max = 0;
|
||||||
|
isetname(image,"no name");
|
||||||
|
image->wastebytes = 0;
|
||||||
|
- image->dorev = 0;
|
||||||
|
+ image->dorev = DOREV;
|
||||||
|
if (write(f,image,sizeof(IMAGE)) != sizeof(IMAGE)) {
|
||||||
|
free(image);
|
||||||
|
close(f);
|
Loading…
Add table
Reference in a new issue