summaryrefslogtreecommitdiffstats
path: root/dcop
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2022-01-17 17:05:30 +0900
committerOBATA Akio <obache@wizdas.com>2022-01-17 17:05:30 +0900
commitad41084b8dd4e029e04073e22e52164505719b57 (patch)
tree257afdfd9f0d8048e1d1facfde685c77a38c43a4 /dcop
parent50a228fc2d0250bcbbb35c676285831a0c35397e (diff)
downloadtdelibs-ad41084b8dd4e029e04073e22e52164505719b57.tar.gz
tdelibs-ad41084b8dd4e029e04073e22e52164505719b57.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>
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;