Skip to content

Built Api-Testing-Target got SOL_SOCKET issue #1

Description

@n2k3b1

After pull source code and build it. I got errors such as following. Could you please advise me for this?

/home/nake/working/perfectswift/API-Testing-Target/Sources/APITestingTarget/utility/cmd.swift:33:30: error: use of unresolved identifier 'SO_NOSIGPIPE'
setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &one, UInt32(MemoryLayout.size));
^~~~~~~~~~~~
/home/nake/working/perfectswift/API-Testing-Target/Sources/APITestingTarget/utility/cmd.swift:84:15: error: cannot assign value of type 'Int32' to type '__suseconds_t' (aka 'Int')
tv.tv_usec = Int32((milliseconds%1000)*1000)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /home/nake/working/perfectswift/API-Testing-Target/.build/debug.yaml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions