Bug 59673 - Missing header in gtk/channel-display.c causes breakage on OpenBSD
Summary: Missing header in gtk/channel-display.c causes breakage on OpenBSD
Status: RESOLVED FIXED
Alias: None
Product: Spice
Classification: Unclassified
Component: spice-gtk (show other bugs)
Version: unspecified
Hardware: Other OpenBSD
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 18:13 UTC by Jasper Lievisse Adriaanse
Modified: 2013-01-21 18:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Add missing include for sys/types.h. (279 bytes, text/plain)
2013-01-21 18:13 UTC, Jasper Lievisse Adriaanse
Details

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.