summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Unix.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-10-08 16:12:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-10-08 16:12:58 +0000
commit88fc7015ce9258a88d5e2a0b0cebf4a2f2f8e811 (patch)
treebdcf2df74f19484ee963d5d42a271503a868f161 /lib/Support/Unix/Unix.h
parent5a0169f0a1434014e727b22240a45a1f329cc0be (diff)
downloadllvm-88fc7015ce9258a88d5e2a0b0cebf4a2f2f8e811.tar.gz
llvm-88fc7015ce9258a88d5e2a0b0cebf4a2f2f8e811.tar.bz2
llvm-88fc7015ce9258a88d5e2a0b0cebf4a2f2f8e811.tar.xz
Fix build on Solaris 11.
Patch by Vladimir Voskresensky. The erros were: Path.inc:274:3: error: ‘Dl_info’ was not declared in this scope ... and usr/include/spawn.h:52:14: error: expected ‘,’ or ‘...’ before ‘argv’ git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Unix.h')
-rw-r--r--lib/Support/Unix/Unix.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Unix/Unix.h b/lib/Support/Unix/Unix.h
index dd11c04b32..ba688e3821 100644
--- 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