diff -Naur xtrans-1.2.5/Xtranssock.c xtrans-1.2.5-haiku/Xtranssock.c
|
old
|
new
|
|
| 1089 | 1089 | #endif |
| 1090 | 1090 | |
| 1091 | 1091 | #if defined(BSD44SOCKETS) || defined(SUN_LEN) |
| 1092 | | namelen = SUN_LEN(&sockname); |
| 1093 | | #else |
| 1094 | 1092 | namelen = strlen(sockname.sun_path) + offsetof(struct sockaddr_un, sun_path); |
| 1095 | 1093 | #endif |
| 1096 | 1094 | |
| … |
… |
|
| 1975 | 1973 | #endif |
| 1976 | 1974 | |
| 1977 | 1975 | #if defined(BSD44SOCKETS) || defined(SUN_LEN) |
| 1978 | | namelen = SUN_LEN (&sockname); |
| 1979 | | #else |
| 1980 | 1976 | namelen = strlen (sockname.sun_path) + offsetof(struct sockaddr_un, sun_path); |
| 1981 | 1977 | #endif |
| 1982 | 1978 | |
diff -Naur xtrans-1.2.5/xtrans.m4 xtrans-1.2.5-haiku/xtrans.m4
|
old
|
new
|
|
| 30 | 30 | # Find needed libraries for TCP sockets, and check for IPv6 support |
| 31 | 31 | AC_DEFUN([XTRANS_TCP_FLAGS],[ |
| 32 | 32 | # 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]) |
| 35 | 35 | if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then |
| 36 | 36 | AC_HAVE_LIBRARY([ws2_32]) |
| 37 | 37 | fi |