summaryrefslogtreecommitdiffstats
path: root/dcop
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2022-01-17 17:05:30 +0900
committerSlávek Banko <slavek.banko@axis.cz>2022-01-17 12:44:35 +0100
commitb2f89687a77d70a4bc88aa20372fc7fab8b645c9 (patch)
treeb1f5526da92151cedbf02338e874908f2e22df10 /dcop
parent1893a88e9b7988730a50000c92634929efe96a41 (diff)
downloadtdelibs-b2f89687a77d70a4bc88aa20372fc7fab8b645c9.tar.gz
tdelibs-b2f89687a77d70a4bc88aa20372fc7fab8b645c9.zip
Fix feature detections with CMake
* implement missing checks with CMake * fixes and improve some detections * remove missing but unused checks Signed-off-by: OBATA Akio <obache@wizdas.com> (cherry picked from commit ad41084b8dd4e029e04073e22e52164505719b57)
Diffstat (limited to 'dcop')
-rw-r--r--dcop/KDE-ICE/Xtranssock.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/dcop/KDE-ICE/Xtranssock.c b/dcop/KDE-ICE/Xtranssock.c
index bb6d122bc..31a35fcd9 100644
--- a/dcop/KDE-ICE/Xtranssock.c
+++ b/dcop/KDE-ICE/Xtranssock.c
@@ -47,6 +47,10 @@ from The Open Group.
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <ctype.h>
#include <unistd.h>
#include <stdlib.h>
@@ -873,7 +877,7 @@ TRANS(SocketINETCreateListener) (XtransConnInfo ciptr, char *port)
else
sockname.sin_port = htons (0);
-#ifdef BSD44SOCKETS
+#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
sockname.sin_len = sizeof (sockname);
#endif
sockname.sin_family = AF_INET;
@@ -947,7 +951,7 @@ TRANS(SocketUNIXCreateListener) (XtransConnInfo ciptr, char *port)
}
namelen = sizeof( sockname ) - sizeof( sockname.sun_path ) + strlen( sockname.sun_path ) + 1;
-#if defined(BSD44SOCKETS)
+#if defined(HAVE_STRUCT_SOCKADDR_UN_SUN_LEN)
sockname.sun_len = namelen;
#endif
@@ -1278,7 +1282,7 @@ TRANS(SocketINETConnect) (XtransConnInfo ciptr, char *host, char *port)
* Build the socket name.
*/
-#ifdef BSD44SOCKETS
+#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
sockname.sin_len = sizeof (struct sockaddr_in);
#endif
sockname.sin_family = AF_INET;