Skip to content

Instantly share code, notes, and snippets.

@JCash
Last active December 1, 2018 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JCash/8a156717494d3259ca38ee8d75630a3e to your computer and use it in GitHub Desktop.
Save JCash/8a156717494d3259ca38ee8d75630a3e to your computer and use it in GitHub Desktop.
A patch file to use with osxcross, to avoid a compile error. Modify build.sh to apply this patch too
--- include/foreign/dlfcn_backup.h 2018-11-18 21:22:45.000000000 +0100
+++ include/foreign/dlfcn.h 2018-11-18 21:23:00.000000000 +0100
@@ -3,7 +3,7 @@
#include_next <dlfcn.h>
#include <stdio.h> /* stderr */
#ifdef __CYGWIN__
-typedef struct dl_info {
+/*typedef struct dl_info {
const char *dli_fname;
void *dli_fbase;
const char *dli_sname;
@@ -14,6 +14,6 @@
{
fprintf(stderr, "dladdr() not implemented\n");
return 0;
-}
+}*/
#endif /* __CYGWIN__ */
#endif /* __CCTOOLS_PORT_DLFCN_H__ */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment