Skip to content

clang-cc.cpp fails to compile under MSVC #4555

@llvmbot

Description

@llvmbot
Bugzilla Link 4183
Resolution FIXED
Resolved on Feb 22, 2010 12:55
Version unspecified
OS Windows XP
Attachments getTerminalWidth for Windows
Reporter LLVM Bugzilla Contributor
CC @DougGregor

Extended Description

/tools/clang-cc/clang-cc.cpp fails to compile under MSVC. On MSVC <sys/types.h> is available (and HAVE_SYS_TYPES_H is defined) but not <sys/ioctl.h>. Attached is a rough patch that uses HAVE_SYS_IOCTL_H. It still needs a configure check to actually define this.

This also adds a call to the equivalent function on Windows but this requires #including <windows.h>. If that's not something you want then this patch gets a lot simpler: just add "&& HAVE_SYS_IOCTL_H" to both of the existing "#if HAVE_SYS_TYPES_H" lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'portability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions