Menu

#58 fix compiliation with ppc compiler

open
nobody
None
5
2006-07-17
2006-07-17
Anonymous
No

I'm compiling udftools-1.0.0b3 with a ppc cross
compiler (host is a 64 bit Intel chip running linux,
target is a powerpc 4xx linux system). I use the
following patch to allow the ppc_4xx gcc breeze past a
compile error that is just a warning with my x86_64
version of gcc.

--- udftools-1.0.0b3/wrudf/wrudf.c.orig 2006-07-14
11:49:11.000000000 -0600
+++ udftools-1.0.0b3/wrudf/wrudf.c 2006-07-14
11:49:25.000000000 -0600
@@ -245,7 +245,7 @@
} else if( strncmp( spm->partIdent.ident,
UDF_ID_VIRTUAL, strlen(UDF
_ID_VIRTUAL)) == 0 )
virtualPartitionNum = i;
}
- (char*)spm += spm->partitionMapLength;
+ spm = (char*)spm + spm->partitionMapLength;
}

Erik Habbinga
InPhase Technologies
erikhabbinga at inphase-tech dot com

Discussion


Log in to post a comment.