projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug 20125 - clang-format segfaults on bad config.
[oota-llvm.git]
/
lib
/
Support
/
Unix
/
Unix.h
diff --git
a/lib/Support/Unix/Unix.h
b/lib/Support/Unix/Unix.h
index dd11c04b32bd32c047b6f3b32c38f99df8bd3ca5..ba688e382175d9c8fc5711c55d212ee09215e10e 100644
(file)
--- a/
lib/Support/Unix/Unix.h
+++ b/
lib/Support/Unix/Unix.h
@@
-47,6
+47,10
@@
# include <sys/wait.h>
#endif
+#ifdef HAVE_DLFCN_H
+# include <dlfcn.h>
+#endif
+
#ifndef WEXITSTATUS
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif