Skip to content
Snippets Groups Projects
Commit 1f519821 authored by Celeste's avatar Celeste
Browse files

community/hinsightd: fix redefinition of statx

Same fix used in 74c6ee48

also, remove `fix-implicit.patch` as musl 1.2.5 has statx
parent 7bdac2a4
No related branches found
No related tags found
1 merge request!65114Fix build issues in gpaste, hinsightd, openzwave, oscam, yadifa
...@@ -13,7 +13,7 @@ pkggroups="$pkgname" ...@@ -13,7 +13,7 @@ pkggroups="$pkgname"
subpackages="$pkgname-dbg $pkgname-openrc" subpackages="$pkgname-dbg $pkgname-openrc"
source=" source="
https://gitlab.com/tiotags/hin9/-/archive/v$pkgver/hin9-v$pkgver.tar.gz https://gitlab.com/tiotags/hin9/-/archive/v$pkgver/hin9-v$pkgver.tar.gz
fix-implicit.patch fix-statx-redefinition.patch
" "
builddir="$srcdir"/hin9-v$pkgver builddir="$srcdir"/hin9-v$pkgver
# no test suite # no test suite
...@@ -67,5 +67,5 @@ package() { ...@@ -67,5 +67,5 @@ package() {
sha512sums=" sha512sums="
7a4d7d7824b787156e7c87d76e97c2fb5129eb50ecf5ea33a7d1ea2e76718ef81a44f49d3161d2cc131ad6d0f27e61b480a2538651d428c19565d2a58cedc25b hin9-v0.9.20.tar.gz 7a4d7d7824b787156e7c87d76e97c2fb5129eb50ecf5ea33a7d1ea2e76718ef81a44f49d3161d2cc131ad6d0f27e61b480a2538651d428c19565d2a58cedc25b hin9-v0.9.20.tar.gz
98d62ed8746a410570adb8d449bda65b0fa2e43e8c24775a6d47b87f6d145ae3cd33e5df3788466f5c55276521c4a7f80f4476c40976682f0d75e7a066d60888 fix-implicit.patch fe6645d0df91011076dc9dea323ae7824d58d9e3dcf1bbd5599151fe53e3b8b7f05d2e993c06f6c3728eb2e7fb5641f150abd4b41b8b8bd4c09b96e3a5614bb8 fix-statx-redefinition.patch
" "
diff --git a/src/netcode/uring.c b/src/netcode/uring.c
index 417ec78..c30deeb 100644
--- a/src/netcode/uring.c
+++ b/src/netcode/uring.c
@@ -15,6 +15,9 @@
#include "hin_internal.h"
#include "conf.h"
+int statx(int dirfd, const char *restrict pathname, int flags,
+ unsigned int mask, struct statx *restrict statxbuf);
+
#if HIN_URING_REDUCE_SYSCALLS
#define io_uring_submit1(x)
#else
--- a/src/netcode/uring.c
+++ b/src/netcode/uring.c
@@ -9,8 +9,6 @@
#include <unistd.h>
#include <fcntl.h>
-#include <linux/stat.h>
-
#include <basic_vfs.h> // needed for musl
#include "hin.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