_K_SS_ALIGNSIZE undefined on Fedora 31

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
bveldhoen
Sr. Member
Sr. Member
Posts: 11
Joined: 07 May 2015, 14:38

_K_SS_ALIGNSIZE undefined on Fedora 31

Post by bveldhoen »

_K_SS_ALIGNSIZE is used in opcua_p_socket.h, but in the latest Fedora distro, this define has been removed from /usr/lib/linux/socket.h.

We fixed this (temporarily) by changing line 80 of opcua_p_socket.h:

} __attribute__ ((aligned((__alignof__ (struct sockaddr *))))); /* force desired alignment */

Post Reply