Bug 6121

Summary: 'caddr_t' undeclared
Product: XCB Reporter: Vincent Torri <vtorri>
Component: LibraryAssignee: Jamey Sharp <jamey>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.