[PATCH] libvolume_id fixes for solaris

Artem Kachitchkine Artem.Kachitchkin at Sun.COM
Mon Mar 6 15:12:57 PST 2006


Could you take a look at this simple patch. Thanks.


Artem Kachitchkine wrote on 02/20/06:
> Changes required for libvolume_id to compile and work correctly on Solaris:
> - Sun compiler uses pragma instead of __attribute__ for packed structs;
> - if configure detects absense of strnlen(), utils.c will provide a 
> local implementation;
> - different byteorder functions;
> - some filesystems are called differently.
> Sorry there isn't a more elegant way to conditionally insert pragmas 
> than ifdefs in each file. Actually gcc seems to recognize #pragma 
> pack(), but I hear it might not be present in all gcc versions/platforms 
> and I wasn't completely comfortable changing Linux code.
> -Artem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-vidsun.patch
Type: text/x-patch
Size: 23689 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060306/1a6292a6/hal-vidsun.bin

More information about the hal mailing list