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

Context Navigation

  • Back to Ticket #330

Ticket #330: xtrans-1.2.5.patch

File xtrans-1.2.5.patch, 1.2 KB (added by michaelvoliveira, 5 years ago)

Removed SUN_LEN references

  • Xtranssock.c

    diff -Naur xtrans-1.2.5/Xtranssock.c xtrans-1.2.5-haiku/Xtranssock.c
    old new  
    10891089#endif 
    10901090 
    10911091#if defined(BSD44SOCKETS) || defined(SUN_LEN) 
    1092     namelen = SUN_LEN(&sockname); 
    1093 #else 
    10941092    namelen = strlen(sockname.sun_path) + offsetof(struct sockaddr_un, sun_path); 
    10951093#endif 
    10961094 
    … …  
    19751973#endif 
    19761974 
    19771975#if defined(BSD44SOCKETS) || defined(SUN_LEN) 
    1978     namelen = SUN_LEN (&sockname); 
    1979 #else 
    19801976    namelen = strlen (sockname.sun_path) + offsetof(struct sockaddr_un, sun_path); 
    19811977#endif 
    19821978 
  • xtrans-1.2.

    diff -Naur xtrans-1.2.5/xtrans.m4 xtrans-1.2.5-haiku/xtrans.m4
    old new  
    3030# Find needed libraries for TCP sockets, and check for IPv6 support 
    3131AC_DEFUN([XTRANS_TCP_FLAGS],[ 
    3232 # SVR4 hides these in libraries other than libc 
    33  AC_SEARCH_LIBS(socket, [socket]) 
    34  AC_SEARCH_LIBS(gethostbyname, [nsl]) 
     33 AC_SEARCH_LIBS(socket, [socket network]) 
     34 AC_SEARCH_LIBS(gethostbyname, [nsl network]) 
    3535 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 
    3636   AC_HAVE_LIBRARY([ws2_32]) 
    3737 fi 

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/