Skip to content
Snippets Groups Projects
Commit a5959f8c authored by mio's avatar mio Committed by Ariadne Conill
Browse files

community/tilda: fix build with gcc 14

parent c0fcd140
No related branches found
No related tags found
1 merge request!71611community/tilda: fix build with gcc 14
Pipeline #257411 skipped
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=tilda pkgname=tilda
pkgver=2.0.0 pkgver=2.0.0
pkgrel=0 pkgrel=1
pkgdesc="A Gtk based drop down terminal for Linux and Unix" pkgdesc="A Gtk based drop down terminal for Linux and Unix"
url="https://github.com/lanoxx/tilda" url="https://github.com/lanoxx/tilda"
arch="all" arch="all"
...@@ -12,7 +12,8 @@ makedepends="automake autoconf libtool ...@@ -12,7 +12,8 @@ makedepends="automake autoconf libtool
confuse-dev vte3-dev libx11-dev libxml2-utils confuse-dev vte3-dev libx11-dev libxml2-utils
pcre2-dev" pcre2-dev"
subpackages="$pkgname-lang $pkgname-doc" 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 builddir="$srcdir"/$pkgname-$pkgname-$pkgver
prepare() { prepare() {
...@@ -40,4 +41,5 @@ package() { ...@@ -40,4 +41,5 @@ package() {
sha512sums=" sha512sums="
e68c04e1c8dd862ab850a06036d67544a910ccd3143eb9d33171d551f34ef47445d6b387bf087ada6f3deddcf115ba928f3bb0497b8a3d2305b202b3b84fd476 tilda-2.0.0.tar.gz e68c04e1c8dd862ab850a06036d67544a910ccd3143eb9d33171d551f34ef47445d6b387bf087ada6f3deddcf115ba928f3bb0497b8a3d2305b202b3b84fd476 tilda-2.0.0.tar.gz
48a5b02b028776c78f5df1d2b43c0a72509456239170c0cb81e2b8d3bd5b75a07358b050b8c7a7c0502df6d137ba7bdf708a5bf7539f474d9805cd890826551c gcc14.patch
" "
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment