Skip to content

Warning when running in docker #34

@neo4u

Description

@neo4u

Hi Team,

I'm getting this warning when doing docker build in my go project that uses this library:

#10 257.1 # github.com/ipsn/go-libtor/libtor
#10 257.1 In file included from /go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/../tor/src/../src/lib/crypt_ops/crypto_rand.c:70,
#10 257.1                  from /go/pkg/mod/github.com/ipsn/go-libtor@v1.0.380/libtor/tor_src_lib_crypt_ops_crypto_rand.go:9:
#10 257.1 /usr/include/sys/fcntl.h:1:2: warning: #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h> [-Wcpp]
#10 257.1     1 | #warning redirecting incorrect #include <sys/fcntl.h> to <fcntl.h>
#10 257.1       |  ^~~~~~~
#10 DONE 260.1s

Any idea as to how to fix? I know it's just a warning, but wanted to avoid a future error due to header linkage.

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