Bug 6121 - 'caddr_t' undeclared
Summary: 'caddr_t' undeclared
Status: RESOLVED WORKSFORME
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Jamey Sharp
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 20:35 UTC by Vincent Torri
Modified: 2006-03-06 23:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vincent Torri 2006-03-04 20:35:23 UTC
On linux, i have errors in xcb_conn.c and xcb_out.c, because 'caddr_t' is not
declared. After some checks in the standard headers, i've found that it is
defined only if __USE_BSD is defined (see sys/types.h)

btw, why not using just a char * ?
Comment 1 Jamey Sharp 2006-03-07 18:19:12 UTC
I believe this bug is caused by having an old version of xproto installed that
sets -D_XOPEN_SOURCE=500. I think I'm building in the same configuration you are
but with up-to-date dependencies, and it works fine.

I used caddr_t because that's how struct iovec is declared on Solaris and I'd
had some difficulty with that in the past. Some general portability testing
would be a good thing anyway.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.