|
@@ -1988,25 +1988,10 @@ have_afalg = get_option('crypto_afalg') \
|
|
'''), error_message: 'AF_ALG requested but could not be detected').allowed()
|
|
'''), error_message: 'AF_ALG requested but could not be detected').allowed()
|
|
config_host_data.set('CONFIG_AF_ALG', have_afalg)
|
|
config_host_data.set('CONFIG_AF_ALG', have_afalg)
|
|
|
|
|
|
-config_host_data.set('CONFIG_AF_VSOCK', cc.compiles(gnu_source_prefix + '''
|
|
|
|
- #include <errno.h>
|
|
|
|
- #include <sys/types.h>
|
|
|
|
- #include <sys/socket.h>
|
|
|
|
- #if !defined(AF_VSOCK)
|
|
|
|
- # error missing AF_VSOCK flag
|
|
|
|
- #endif
|
|
|
|
- #include <linux/vm_sockets.h>
|
|
|
|
- int main(void) {
|
|
|
|
- int sock, ret;
|
|
|
|
- struct sockaddr_vm svm;
|
|
|
|
- socklen_t len = sizeof(svm);
|
|
|
|
- sock = socket(AF_VSOCK, SOCK_STREAM, 0);
|
|
|
|
- ret = getpeername(sock, (struct sockaddr *)&svm, &len);
|
|
|
|
- if ((ret == -1) && (errno == ENOTCONN)) {
|
|
|
|
- return 0;
|
|
|
|
- }
|
|
|
|
- return -1;
|
|
|
|
- }'''))
|
|
|
|
|
|
+config_host_data.set('CONFIG_AF_VSOCK', cc.has_header_symbol(
|
|
|
|
+ 'linux/vm_sockets.h', 'AF_VSOCK',
|
|
|
|
+ prefix: '#include <sys/socket.h>',
|
|
|
|
+))
|
|
|
|
|
|
have_vss = false
|
|
have_vss = false
|
|
have_vss_sdk = false # old xp/2003 SDK
|
|
have_vss_sdk = false # old xp/2003 SDK
|