diff options
author | maho <maho@FreeBSD.org> | 2007-03-24 22:16:05 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2007-03-24 22:16:05 +0000 |
commit | e3c33a148d9aeb99781d6bf8712fe706d98f70e1 (patch) | |
tree | 2568d85b13788c8431a54a7aa51f3c54ff4000d0 /graphics/inventor/files | |
parent | 442725fe7aed9bc768677d529625b8b4a5912393 (diff) | |
download | FreeBSD-ports-e3c33a148d9aeb99781d6bf8712fe706d98f70e1.zip FreeBSD-ports-e3c33a148d9aeb99781d6bf8712fe706d98f70e1.tar.gz |
* A bug fix (patch-open.c).
* Bump portrevision.
Submitted by: maintainer
Diffstat (limited to 'graphics/inventor/files')
-rw-r--r-- | graphics/inventor/files/patch-open.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/inventor/files/patch-open.c b/graphics/inventor/files/patch-open.c new file mode 100644 index 0000000..a9a735a --- /dev/null +++ b/graphics/inventor/files/patch-open.c @@ -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); |