Hello,

first of all, I don't know programming in C/C++.

Anyway, spice-xpi is falling because difference in setpgrp,
OpenBSD uses BSD instead POSIX.1 version.

c++ -DHAVE_CONFIG_H -I. -I../../.. -I/usr/local/xulrunner1.9/include 
-I/usr/local/xulrunner1.9/include/dom -I/usr/local/xulrunner1.9/include/necko 
-I/usr/local/xulrunn
er1.9/include/plugin -I/usr/local/xulrunner1.9/include/string -I../../../common 
-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
-I/usr/local/include -I../../../spice-protocol -DXPCOM_GLUE 
-I/usr/local/xulrunner1.9/include -fshort-wchar -I/usr/local/include/nspr 
-DCAIRO_CANVAS_ACCESS_TEST -DCAIRO_CANVAS_CACHE -DCAIRO_CANVAS_NO_CHUNKS 
-DG_LOG_DOMAIN="SpiceXPI" -DMOZILLA_INTERNAL_API -DXP_UNIX -O2 -pipe -MT 
libnsISpicec_la-plugin.lo -MD -MP -MF .deps/libnsISpicec_la-plugin.Tpo -c 
plugin.cpp -fPIC -DPIC -o .libs/libnsISpicec_la-plugin.o
/usr/include/unistd.h: In member function 'void nsPluginInstance::Connect()':
/usr/include/unistd.h:391: error: too few arguments to function 'int 
setpgrp(pid_t, pid_t)'
plugin.cpp:627: error: at this point in file

plugin.cpp

   624      m_pid_controller = fork();
   625      if (m_pid_controller == 0)
   626      {
   627          setpgrp();
   628  
   629          close(pipe_fds[1]);
   630          pipe_fds[1] = -1;
   631  

The source is here:

    
http://cgit.freedesktop.org/spice/spice-xpi/tree/SpiceXPI/src/plugin/plugin.cpp

Anybody would find some minute to make a patch for this?
Although that's not all, next issue will be audio :D

jirib

Reply via email to