diff options
author | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2018-10-03 11:12:30 +0200 |
---|---|---|
committer | Ignacio Casal Quinteiro <qignacio@amazon.com> | 2018-10-04 09:28:31 +0200 |
commit | 16ef68e2720f8baa57efd4996446f55f6f80489c (patch) | |
tree | 53fd407e3d3c270161881248a5a1816e5adb1f57 | |
parent | 3fbed84f30067fdbf547bb8bdb668e02e462214b (diff) | |
download | gdk-pixbuf-16ef68e2720f8baa57efd4996446f55f6f80489c.tar.gz |
queryloaders: add missing include for OSX when using relocations
-rw-r--r-- | gdk-pixbuf/queryloaders.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c index 312aa7890..ddcae7b6f 100644 --- a/gdk-pixbuf/queryloaders.c +++ b/gdk-pixbuf/queryloaders.c @@ -46,6 +46,10 @@ #include <windows.h> #endif +#ifdef OS_DARWIN +#include <mach-o/dyld.h> +#endif + static void print_escaped (GString *contents, const char *str) { @@ -129,7 +133,7 @@ get_toplevel (void) toplevel = g_win32_get_package_installation_directory_of_module (NULL); #elif defined(OS_DARWIN) char pathbuf[PATH_MAX + 1]; - uint32_t bufsize = sizeof (pathbuf); + uint32_t bufsize = sizeof (pathbuf); gchar *bin_dir; _NSGetExecutablePath (pathbuf, &bufsize); |