Skip to content

MinGW Makefiles build in AppVeyor Windows - implicit declaration of function 'dup' #21

@connorimes

Description

@connorimes

I haven't been able to figure this one out. I think the compiler is not defining _MSC_VER so that io.h is not included, but I don't want to remove the check for it at the risk of breaking other builds that servo supports. Trying to use _dup also produces an implicit declaration message.

C:\projects\heartbeats-simple\src\hb.c:105:3: warning: implicit declaration of function 'dup' [-Wimplicit-function-declaration]
   FILE* log = fdopen(dup(fd), "w");
   ^

Perhaps there is a better way to get a FILE* from a file descriptor that we can properly cleanup without closing the underlying fd when we're finished that doesn't use dup.

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