about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ldsodefs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/ldsodefs.h b/include/ldsodefs.h
new file mode 100644
index 0000000000..ffc7b3c067
--- /dev/null
+++ b/include/ldsodefs.h
@@ -0,0 +1,15 @@
+/* We must use the appropriate version for the system.  */
+#ifdef __ELF__
+# include <elf/ldsodefs.h>
+#else
+/* We have no dynamic loading.  Define the macros we need here as dummy
+   versions.  */
+# ifndef _LDSODEFS_H
+# define _LDSODEFS_H	1
+
+/* Call a function through a pointer.  */
+# define _CALL_DL_FCT(fctp, args) (*fctp) args
+# define CALL_DL_FCT(fctp, args) (*fctp) args
+
+# endif	/* ldsodefs.h */
+#endif