<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Missing header in gtk/channel-display.c causes breakage on OpenBSD"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=59673">59673</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>spice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing header in gtk/channel-display.c causes breakage on OpenBSD
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OpenBSD
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jasper@humppa.nl
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>gtk-client
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=73397" name="attach_73397" title="Add missing include for sys/types.h.">attachment 73397</a> <a href="attachment.cgi?id=73397&action=edit" title="Add missing include for sys/types.h.">[details]</a></span>
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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>