Skip to content

windows兼容问题 #1830

@Potato-2020

Description

@Potato-2020

GmSSL-master\src\tls.c
第2324行,此函数,在windows平台上,入参类型为u_long,下面代码警告并终止了程序
int flags = 1;
if (ioctlsocket(sock, FIONBIO, &flags) != 0) {
......
修改一下:
u_long flags = 1;
if (ioctlsocket(sock, FIONBIO, &flags) != 0) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions