aboutsummaryrefslogtreecommitdiff
path: root/include/Config/dlfcn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Config/dlfcn.h')
-rw-r--r--include/Config/dlfcn.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/Config/dlfcn.h b/include/Config/dlfcn.h
new file mode 100644
index 0000000000..9beddccbf1
--- /dev/null
+++ b/include/Config/dlfcn.h
@@ -0,0 +1,27 @@
+/*
+ * Header file: dlfcn.h
+ *
+ * Description:
+ * This header file is the autoconf replacement for dlfcn.h (if it lives
+ * on the system).
+ */
+
+#ifndef _CONFIG_DLFCN_H
+#define _CONFIG_DLFCN_H
+
+#include "Config/config.h"
+
+/*
+ * According to the man pages on dlopen(), we sometimes need link.h. So,
+ * go grab it just in case.
+ */
+#ifdef HAVE_DLFCN_H
+#include <dlfcn.h>
+
+#ifdef HAVE_LINK_H
+#include <link.h>
+#endif
+
+#endif
+
+#endif