HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #330

Ticket #330: libxcb-1.6.patch

File libxcb-1.6.patch, 925 bytes (added by michaelvoliveira, 5 years ago)

Removed SUN_LEN macro reference

  • configure.ac

    diff -Naur libxcb-1.6/configure.ac libxcb-1.6-haiku/configure.ac
    old new  
    6969AC_SUBST(XCBPROTO_XCBPYTHONDIR) 
    7070 
    7171AC_HEADER_STDC 
    72 AC_SEARCH_LIBS(getaddrinfo, socket) 
    73 AC_SEARCH_LIBS(connect, socket) 
     72AC_SEARCH_LIBS(getaddrinfo, [socket network]) 
     73AC_SEARCH_LIBS(connect, [socket network]) 
    7474 
    7575case $host_os in 
    7676linux*) 
  • src/xcb_util.c

    diff -Naur libxcb-1.6/src/xcb_util.c libxcb-1.6-haiku/src/xcb_util.c
    old new  
    300300    strcpy(addr.sun_path, file); 
    301301    addr.sun_family = AF_UNIX; 
    302302#ifdef HAVE_SOCKADDR_SUN_LEN 
    303     addr.sun_len = SUN_LEN(&addr); 
     303    addr.sun_len = sizeof(&addr); 
    304304#endif 
    305305    fd = _xcb_socket(AF_UNIX, SOCK_STREAM, 0); 
    306306    if(fd == -1) 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/