Bug 59673

Summary: Missing header in gtk/channel-display.c causes breakage on OpenBSD
Product: Spice Reporter: Jasper Lievisse Adriaanse <jasper>
Component: spice-gtkAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: OpenBSD   
Whiteboard:
i915 platform: i915 features:
Attachments: Add missing include for sys/types.h.

Description Jasper Lievisse Adriaanse 2013-01-21 18:13:00 UTC
Created attachment 73397 [details]
Add missing include for sys/types.h.

The build of spice-gtk fails on OpenBSD (and probably the other BSD's too) as an include for sys/types.h is lacking in gtk/channel-display.c. This means that gcc bails out with:

In file included from /usr/include/sys/shm.h:45,
                 from channel-display.c:24:
/usr/include/sys/ipc.h:52: error: expected specifier-qualifier-list before 'uid_t'
/usr/include/sys/ipc.h:90: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ftok'
In file included from channel-display.c:24:
/usr/include/sys/shm.h:103: error: expected specifier-qualifier-list before 'pid_t'
/usr/include/sys/shm.h:152: error: expected ')' before 'int'

The attached patch fixes this issue.
Comment 2 Jasper Lievisse Adriaanse 2013-01-21 18:57:16 UTC
Thank you for the quick push :)

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.