Ricardo Correia wrote: > Ok, the changes are available here: http://www.wizy.org/files/zfs-linux.patch > > A few notes: > > 1) The patch includes the header Solaris/Linux differences. I'm not sure > what's relevant, if anything. I have included some Solaris-specific macros > and typedefs in sol_compat.h, so you will see some #includes removed. > > By the way, I'm not exactly a C or UNIX expert (not even close), so if there > are any glaring errors in the #includes, please let me know :p > > 2) I don't know if I got the necessary casts correctly. I had to do it to > eliminate gcc warnings, I don't know how it'll work with the Sun Studio > compiler. I have tested them with gcc-3.4.5 in both x86 and x86-64 modes. > > 3) gcc spits a warning in this code: 'struct foo bar = { 0 }'.. I had to > change all such code to 'struct foo bar = {}'. The {0} syntax is correct > standard C, however.
We are compiling this will both the Sun Compilers and gcc 3.4.3 We use a tool "cw" compiler wrapper to translate Sun Compiler options into gcc options. http://cvs.opensolaris.org/source/xref/on/usr/src/tools/cw/cw.c
