summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2018-10-05 10:19:06 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2018-10-05 10:19:06 +0000
commit9435ec5ccc0d8002cb9bec021b419d57732d334b (patch)
tree53fd407e3d3c270161881248a5a1816e5adb1f57
parent3fbed84f30067fdbf547bb8bdb668e02e462214b (diff)
parent16ef68e2720f8baa57efd4996446f55f6f80489c (diff)
downloadgdk-pixbuf-9435ec5ccc0d8002cb9bec021b419d57732d334b.tar.gz
Merge branch 'queryloaders-osx' into 'master'
queryloaders: add missing include for OSX when using relocations See merge request GNOME/gdk-pixbuf!18
-rw-r--r--gdk-pixbuf/queryloaders.c6
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);