fix build on Cygwin

llvm-svn: 302246
This commit is contained in:
Nuno Lopes 2017-05-05 16:08:22 +00:00
parent 94d42533eb
commit 8b66b00ecd
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ void *DynamicLibrary::HandleSet::DLOpen(const char *File, std::string *Err) {
#ifdef __CYGWIN__ #ifdef __CYGWIN__
// Cygwin searches symbols only in the main // Cygwin searches symbols only in the main
// with the handle of dlopen(NULL, RTLD_GLOBAL). // with the handle of dlopen(NULL, RTLD_GLOBAL).
if (!Filename) if (!File)
Handle = RTLD_DEFAULT; Handle = RTLD_DEFAULT;
#endif #endif