[gdk-pixbuf/queryloaders-osx] queryloaders: add missing include for OSX when using relocations



commit 16ef68e2720f8baa57efd4996446f55f6f80489c
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Oct 3 11:12:30 2018 +0200

    queryloaders: add missing include for OSX when using relocations

 gdk-pixbuf/queryloaders.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]