[Xcb] xcb with BSD make and on DragonFly
Barton C Massey
bart at cs.pdx.edu
Sun Mar 12 01:48:22 PST 2006
Actually, probably the right thing here is to get autoconf
to help you. This is the kind of thing it's supposed to be
for. :-)
Bart
In message <20060311190156.GB5974 at id.minilop.net> you wrote:
>
> --===============0823298655==
> Content-Type: multipart/signed; micalg=pgp-sha1;
> protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw"
> Content-Disposition: inline
>
>
> --XOIedfhf+7KOe/yw
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
>
> In summary:
>
> Solaris and DragonFly use a char* for iov_base (though Solaris hides it
> behind the "caddr_t" name), while {Open,Net,Free}BSD and Linux use
> void*.
>
> Linux and Solaris both have the caddr_t typedef, which is a char* in
> both cases. I'm guessing this typedef is available everywhere.
>
> I could choose to cast all pointers either to char* or to void*, and
> either choice would work on all of these platforms. I'm tempted to pick
> char*, for two dumb reasons: it might make porting to really old
> compilers easier (as if I care), and I often do byte-wise pointer math
> on the iov_base elements (but I'll still have to explicitly cast in
> those cases for Linux etc.). If I use char*, I could hide it behind
> caddr_t, or not; but I'll probably drop all uses of caddr_t.
>
> So I guess I have a plan for making this bit portable now.
>
> --Jamey
>
> --XOIedfhf+7KOe/yw
> Content-Type: application/pgp-signature; name="signature.asc"
> Content-Description: Digital signature
> Content-Disposition: inline
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFEEx6kp1aplQ4I9mURAhGMAJ9PHoua+dUHYZdTLog+piU3gzk8WACeK7bA
> cI+kQ3hJSeOWRvjodwnKupc=
> =9Kpc
> -----END PGP SIGNATURE-----
>
> --XOIedfhf+7KOe/yw--
>
> --===============0823298655==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
> --===============0823298655==--
More information about the Xcb
mailing list