-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GLib-2.75.1 (needed because issue #20)
- Loading branch information
1 parent
85fbfbe
commit dd46905
Showing
6 changed files
with
91 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- gio/giounix-private.c | ||
+++ gio/giounix-private.c | ||
@@ -25,6 +25,22 @@ | ||
#include <sys/types.h> | ||
#if defined (HAVE_EPOLL_CREATE) | ||
#include <sys/epoll.h> | ||
+#if __ANDROID_API__ < 21 | ||
+// Patch inspired by (taken from): | ||
+// https://github.com/deltachat/deltachat-android/pull/2324 | ||
+// fcntl only if epoll created successfully | ||
+#include <fcntl.h> | ||
+#define EPOLL_CLOEXEC O_CLOEXEC | ||
+static int epoll_create1(int flags) { | ||
+ int fd = epoll_create(1); | ||
+ if (-1 != fd && flags & O_CLOEXEC) { | ||
+ int f = fcntl(fd, F_GETFD); | ||
+ fcntl(fd, F_SETFD, f | FD_CLOEXEC); | ||
+ } | ||
+ return fd; | ||
+} | ||
+#endif | ||
+ | ||
#elif defined (HAVE_KQUEUE) | ||
#include <sys/event.h> | ||
#include <sys/time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- glib/meson.build | ||
+++ glib/meson.build 2023-12-23 17:41:36.158000000 +0200 | ||
@@ -434,7 +434,7 @@ | ||
include_directories : [configinc, glibinc]) | ||
|
||
pkg.generate(libglib, | ||
- libraries : [libintl_deps], | ||
+ libraries : [libintl_deps, libffi_dep], | ||
libraries_private : [win32_ldflags], | ||
subdirs : ['glib-2.0'], | ||
extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- meson.build | ||
+++ meson.build 2023-12-22 23:24:51.020000000 +0200.txt | ||
@@ -2097,7 +2097,7 @@ | ||
# | ||
# Meson's builtin dependency lookup as of 0.60.0 doesn't check for | ||
# pthread, so we do this manually here. | ||
- if cc.has_function('ngettext', dependencies : libintl) | ||
+ if cc.has_function('ngettext', dependencies : libintl, prefix : '#include <libintl.h>') | ||
libintl_deps += [libintl] | ||
else | ||
libintl_pthread = cc.find_library('pthread', required : false) |