diff --git a/community/tilda/APKBUILD b/community/tilda/APKBUILD
index 7bb57e8d778d9c140be455002286cf32758be5dd..eed094df814b46142aaf97eb3fa0a663cbca178b 100644
--- a/community/tilda/APKBUILD
+++ b/community/tilda/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
 pkgname=tilda
 pkgver=2.0.0
-pkgrel=0
+pkgrel=1
 pkgdesc="A Gtk based drop down terminal for Linux and Unix"
 url="https://github.com/lanoxx/tilda"
 arch="all"
@@ -12,7 +12,8 @@ makedepends="automake autoconf libtool
 	confuse-dev vte3-dev libx11-dev libxml2-utils
 	pcre2-dev"
 subpackages="$pkgname-lang $pkgname-doc"
-source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz"
+source="https://github.com/lanoxx/tilda/archive/tilda-$pkgver.tar.gz
+	gcc14.patch"
 builddir="$srcdir"/$pkgname-$pkgname-$pkgver
 
 prepare() {
@@ -40,4 +41,5 @@ package() {
 
 sha512sums="
 e68c04e1c8dd862ab850a06036d67544a910ccd3143eb9d33171d551f34ef47445d6b387bf087ada6f3deddcf115ba928f3bb0497b8a3d2305b202b3b84fd476  tilda-2.0.0.tar.gz
+48a5b02b028776c78f5df1d2b43c0a72509456239170c0cb81e2b8d3bd5b75a07358b050b8c7a7c0502df6d137ba7bdf708a5bf7539f474d9805cd890826551c  gcc14.patch
 "
diff --git a/community/tilda/gcc14.patch b/community/tilda/gcc14.patch
new file mode 100644
index 0000000000000000000000000000000000000000..e25196bc6884f070d178a64d0d0c7cec576b10d3
--- /dev/null
+++ b/community/tilda/gcc14.patch
@@ -0,0 +1,23 @@
+Fix -Wimplicit-function-declaration error with gcc 14.
+
+Error:
+
+```
+src/tilda-lock-files.c: In function 'getPids':
+src/tilda-lock-files.c:223:22: error: implicit declaration of function 'popen';
+did you mean 'open'? [-Wimplicit-function-declaration]
+  223 |     if ((ps_output = popen (ps_command, "r")) == NULL) {
+      |                      ^~~~~
+      |                      open
+```
+
+--- tilda-tilda-2.0.0-origin/src/tilda-lock-files.c
++++ tilda-tilda-2.0.0/src/tilda-lock-files.c
+@@ -13,6 +13,7 @@
+  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+  */
+ 
++#define _DEFAULT_SOURCE
+ #include "tilda-lock-files.h"
+ 
+ #include "debug.h"