[patch] Move a check to HostGetOpt.h

There is a check in OptionParser.cpp to define _BSD_SOURCE. This was also needed in Platform.h as it also includes HostGetOpt.h. So I have moved that check in HostGetOpt.h so that it can be used in both places. I think it is obvious but still checked that lldb compiles fine for both Linux and mingw.


getopt.patch (942 Bytes)

Looks good as long as _WIN32 is defined for 64 bit windows builds.