Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cross/bind_9.20/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ DEPENDS += cross/libcap
# needs C11 with some C17 features
REQUIRED_MIN_DSM = 7.0
UNSUPPORTED_ARCHS = comcerto2k
REQUIRED_MIN_SRM = 1.3


HOMEPAGE = https://www.isc.org/
Expand Down
9 changes: 8 additions & 1 deletion cross/cpulimit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)/src

DEPENDS =

CONFIGURE_TARGET = nop
CONFIGURE_TARGET = cpulimit_configure
INSTALL_TARGET = cpulimit_install

HOMEPAGE = https://github.com/opsengine/cpulimit
Expand All @@ -17,6 +17,13 @@ LICENSE = GPLv2+

include ../../mk/spksrc.cross-cc.mk

.PHONY: cpulimit_configure
cpulimit_configure:
@$(MSG) "Add header files missing in some toolchains (DSM 7.2, SRM 1.3)"
@install -d -m 755 $(STAGING_INSTALL_PREFIX)/include/sys $(STAGING_INSTALL_PREFIX)/include/bits
@install -m 755 src/sys/sysctl.h $(STAGING_INSTALL_PREFIX)/include/sys/
@install -m 755 src/bits/sysctl.h $(STAGING_INSTALL_PREFIX)/include/bits/

.PHONY: cpulimit_install
cpulimit_install:
@install -d -m 755 $(STAGING_INSTALL_PREFIX)/bin/
Expand Down
1 change: 1 addition & 0 deletions cross/cpulimit/src/bits/sysctl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* Empty file. */
73 changes: 73 additions & 0 deletions cross/cpulimit/src/sys/sysctl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/* Copyright (C) 1996-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */

#ifndef _SYS_SYSCTL_H
#define _SYS_SYSCTL_H 1

#include <features.h>
#define __need_size_t
#include <stddef.h>
/* Prevent more kernel headers than necessary to be included. */
#ifndef _LINUX_KERNEL_H
# define _LINUX_KERNEL_H 1
# define __undef_LINUX_KERNEL_H
#endif
#ifndef _LINUX_TYPES_H
# define _LINUX_TYPES_H 1
# define __undef_LINUX_TYPES_H
#endif
#ifndef _LINUX_LIST_H
# define _LINUX_LIST_H 1
# define __undef_LINUX_LIST_H
#endif
#ifndef __LINUX_COMPILER_H
# define __LINUX_COMPILER_H 1
# define __user
# define __undef__LINUX_COMPILER_H
#endif

#include <linux/sysctl.h>

#ifdef __undef_LINUX_KERNEL_H
# undef _LINUX_KERNEL_H
# undef __undef_LINUX_KERNEL_H
#endif
#ifdef __undef_LINUX_TYPES_H
# undef _LINUX_TYPES_H
# undef __undef_LINUX_TYPES_H
#endif
#ifdef __undef_LINUX_LIST_H
# undef _LINUX_LIST_H
# undef __undef_LINUX_LIST_H
#endif
#ifdef __undef__LINUX_COMPILER_H
# undef __LINUX_COMPILER_H
# undef __user
# undef __undef__LINUX_COMPILER_H
#endif

#include <bits/sysctl.h>

__BEGIN_DECLS

/* Read or write system parameters. */
extern int sysctl (int *__name, int __nlen, void *__oldval,
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW;

__END_DECLS

#endif /* _SYS_SYSCTL_H */
1 change: 1 addition & 0 deletions cross/elfutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ COMMENT = elfutils is a collection of utilities and libraries to read, create a
LICENSE = GPL

REQUIRED_MIN_DSM = 7.0
REQUIRED_MIN_SRM = 1.3

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --disable-libdebuginfod
Expand Down
2 changes: 2 additions & 0 deletions cross/frei0r/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ LICENSE = GPL-2.0

REQUIRED_MIN_DSM = 7
UNSUPPORTED_ARCHS = $(ARMv5_ARCHS) $(OLD_PPC_ARCHS) comcerto2k
REQUIRED_MIN_SRM = 1.3

CMAKE_USE_TOOLCHAIN_FILE = OFF

CMAKE_ARGS = -DCMAKE_BUILD_TYPE=Release
Expand Down
42 changes: 42 additions & 0 deletions cross/fuse/patches/003-fix-for-newer-glibc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# util/ulockmgr_server.c: conditionally define closefrom (fix glibc-2.34+)
# origin: https://github.com/libfuse/libfuse/pull/619/files
#
--- configure.ac.orig 2019-01-04 13:38:34.000000000 +0000
+++ configure.ac 2025-09-22 20:50:55.284892241 +0000
@@ -55,6 +55,7 @@

AC_CHECK_FUNCS([fork setxattr fdatasync splice vmsplice utimensat])
AC_CHECK_FUNCS([posix_fallocate])
+AC_CHECK_FUNCS([closefrom])
AC_CHECK_MEMBERS([struct stat.st_atim])
AC_CHECK_MEMBERS([struct stat.st_atimespec])

--- util/ulockmgr_server.c.orig 2019-01-04 13:38:34.000000000 +0000
+++ util/ulockmgr_server.c 2025-09-22 20:58:31.306592559 +0000
@@ -22,6 +22,10 @@
#include <sys/socket.h>
#include <sys/wait.h>

+#ifdef HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
struct message {
unsigned intr : 1;
unsigned nofd : 1;
@@ -124,6 +128,7 @@
return res;
}

+#if !defined(HAVE_CLOSEFROM)
static int closefrom(int minfd)
{
DIR *dir = opendir("/proc/self/fd");
@@ -141,6 +146,7 @@
}
return 0;
}
+#endif

static void send_reply(int cfd, struct message *msg)
{
1 change: 1 addition & 0 deletions cross/gotify-cli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PKG_NAME = gotify-cli
PKG_VERS = 2.2.1
PKG_DIST_NAME = gotify-cli-linux-$(PKG_DIST_ARCH)
PKG_DIST_SITE = https://github.com/gotify/cli/releases/download/v$(PKG_VERS)
PKG_DIST_FILE = gotify-cli-$(PKG_VERS)-linux-$(PKG_DIST_ARCH)

UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS)

Expand Down
24 changes: 12 additions & 12 deletions cross/gotify-cli/digests
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
gotify-cli-linux-amd64 SHA1 6c10faffd271c6cf0cb0d3df4ed2e2ad8db83c06
gotify-cli-linux-amd64 SHA256 970b2ffdc71083574f4d2e5a6a4862b0299929ac66c5a54113fff4ad3d52ce1b
gotify-cli-linux-amd64 MD5 d143326d6c44b6b9d6a91d298692233c
gotify-cli-linux-386 SHA1 f71f2655da225e1299bcc2a46618b7f7f54b739f
gotify-cli-linux-386 SHA256 c49482834e80de2dc7f72e1a86f75e646c91645bb31329c4059544857d517e84
gotify-cli-linux-386 MD5 e954c6561f9da14af5bee015a2d31436
gotify-cli-linux-arm-7 SHA1 4d5402f1a056694aa5d5e00e34353ea97b3f369f
gotify-cli-linux-arm-7 SHA256 d0dba4f453598d37fed7908d264c47498d1b8c808f5cb935bf5969f2e01696c8
gotify-cli-linux-arm-7 MD5 7ddec0568603d55b73ac47d1dfb3c6f6
gotify-cli-linux-arm64 SHA1 7317966c057bf7b9f5eab900faf8bf6b4b767538
gotify-cli-linux-arm64 SHA256 e44c0dbf84bc1fb2f58da547065a569d45300cf1d11d4e46ecdeb99ef6a00e54
gotify-cli-linux-arm64 MD5 035493ff0e52450ca565f12cdd560ca7
gotify-cli-2.2.1-linux-amd64 SHA1 6c10faffd271c6cf0cb0d3df4ed2e2ad8db83c06
gotify-cli-2.2.1-linux-amd64 SHA256 970b2ffdc71083574f4d2e5a6a4862b0299929ac66c5a54113fff4ad3d52ce1b
gotify-cli-2.2.1-linux-amd64 MD5 d143326d6c44b6b9d6a91d298692233c
gotify-cli-2.2.1-linux-386 SHA1 f71f2655da225e1299bcc2a46618b7f7f54b739f
gotify-cli-2.2.1-linux-386 SHA256 c49482834e80de2dc7f72e1a86f75e646c91645bb31329c4059544857d517e84
gotify-cli-2.2.1-linux-386 MD5 e954c6561f9da14af5bee015a2d31436
gotify-cli-2.2.1-linux-arm-7 SHA1 4d5402f1a056694aa5d5e00e34353ea97b3f369f
gotify-cli-2.2.1-linux-arm-7 SHA256 d0dba4f453598d37fed7908d264c47498d1b8c808f5cb935bf5969f2e01696c8
gotify-cli-2.2.1-linux-arm-7 MD5 7ddec0568603d55b73ac47d1dfb3c6f6
gotify-cli-2.2.1-linux-arm64 SHA1 7317966c057bf7b9f5eab900faf8bf6b4b767538
gotify-cli-2.2.1-linux-arm64 SHA256 e44c0dbf84bc1fb2f58da547065a569d45300cf1d11d4e46ecdeb99ef6a00e54
gotify-cli-2.2.1-linux-arm64 MD5 035493ff0e52450ca565f12cdd560ca7
1 change: 1 addition & 0 deletions cross/gotify-server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PKG_VERS = 2.1.4
PKG_EXT = zip
PKG_DIST_NAME = gotify-linux-$(PKG_DIST_ARCH).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/gotify/server/releases/download/v$(PKG_VERS)
PKG_DIST_FILE = gotify-$(PKG_VERS)-linux-$(PKG_DIST_ARCH).$(PKG_EXT)

UNSUPPORTED_ARCHS = $(PPC_ARCHS) $(ARMv5_ARCHS) $(ARMv7L_ARCHS)

Expand Down
24 changes: 12 additions & 12 deletions cross/gotify-server/digests
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
gotify-linux-amd64.zip SHA1 e8ba8d00de67ca8b7a66fd2ebafc7cad2ad1f2af
gotify-linux-amd64.zip SHA256 98b126e5d934d45b1390b1a1b9136e7690518bfdbb731a75a45a55e86291af4b
gotify-linux-amd64.zip MD5 285a66542aa1852dbf47bb0451ed2cc6
gotify-linux-386.zip SHA1 545272983835ff46d9ca9d8034fb369e2fc5c329
gotify-linux-386.zip SHA256 171a31c234479cb04dbdb491302bcf30a1bce747f69678c7c7f1e7f24e46ae7a
gotify-linux-386.zip MD5 a5e6d89651a288e5d9fb2fc0197d373d
gotify-linux-arm-7.zip SHA1 388f182aeba26755432945402723dc1a7b9bca61
gotify-linux-arm-7.zip SHA256 ffbc8710f1ba6b2c3dc74171fd4e28fc74765e6dda2e6a304dc0685bbd167243
gotify-linux-arm-7.zip MD5 40dcb76a40dbbb1c1b5387ad1aa2617d
gotify-linux-arm64.zip SHA1 cbd8fa2582b87824ba5483e0482769c939b4a481
gotify-linux-arm64.zip SHA256 1379a92844e9d632cc5fd01db1e1d1ef4303bb6e92e6ca7e2618f06ed463264c
gotify-linux-arm64.zip MD5 e9466bc6f8bac5cf29077ae5ee84e7c0
gotify-2.1.4-linux-amd64.zip SHA1 e8ba8d00de67ca8b7a66fd2ebafc7cad2ad1f2af
gotify-2.1.4-linux-amd64.zip SHA256 98b126e5d934d45b1390b1a1b9136e7690518bfdbb731a75a45a55e86291af4b
gotify-2.1.4-linux-amd64.zip MD5 285a66542aa1852dbf47bb0451ed2cc6
gotify-2.1.4-linux-386.zip SHA1 545272983835ff46d9ca9d8034fb369e2fc5c329
gotify-2.1.4-linux-386.zip SHA256 171a31c234479cb04dbdb491302bcf30a1bce747f69678c7c7f1e7f24e46ae7a
gotify-2.1.4-linux-386.zip MD5 a5e6d89651a288e5d9fb2fc0197d373d
gotify-2.1.4-linux-arm-7.zip SHA1 388f182aeba26755432945402723dc1a7b9bca61
gotify-2.1.4-linux-arm-7.zip SHA256 ffbc8710f1ba6b2c3dc74171fd4e28fc74765e6dda2e6a304dc0685bbd167243
gotify-2.1.4-linux-arm-7.zip MD5 40dcb76a40dbbb1c1b5387ad1aa2617d
gotify-2.1.4-linux-arm64.zip SHA1 cbd8fa2582b87824ba5483e0482769c939b4a481
gotify-2.1.4-linux-arm64.zip SHA256 1379a92844e9d632cc5fd01db1e1d1ef4303bb6e92e6ca7e2618f06ed463264c
gotify-2.1.4-linux-arm64.zip MD5 e9466bc6f8bac5cf29077ae5ee84e7c0
1 change: 1 addition & 0 deletions cross/kavita/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PKG_VERS = 0.8.7
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-linux-$(PKG_DIST_ARCH).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/Kareadita/Kavita/releases/download/v$(PKG_VERS)
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS)-linux-$(PKG_DIST_ARCH).$(PKG_EXT)
PKG_DIR = Kavita

DEPENDS =
Expand Down
18 changes: 9 additions & 9 deletions cross/kavita/digests
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
kavita-linux-arm.tar.gz SHA1 30eb95ca9926c5208b5d42db785881dcd711f6eb
kavita-linux-arm.tar.gz SHA256 dd2f556ccc17d9d241871f451964a19169871d6a58f1f3de2af8627c8b022ed8
kavita-linux-arm.tar.gz MD5 da7ed971961eaad2514518da63538bb8
kavita-linux-arm64.tar.gz SHA1 2f51d508e0dcca4955798619a95cb26901dc1365
kavita-linux-arm64.tar.gz SHA256 e54108d9a39258d1bed77e4abeff5419d04f146a15c2c0d862e8354eb5634276
kavita-linux-arm64.tar.gz MD5 7f6df5347f76c44525e4bf8a6600eafb
kavita-linux-x64.tar.gz SHA1 e19aaf00a0dae3248220d37930f9629b49578f55
kavita-linux-x64.tar.gz SHA256 88ea7862ae732a80e562139d3fa5e404f52b3762af8ec5ae2e83266e251f63e4
kavita-linux-x64.tar.gz MD5 4e64bccaecf5ed58b36096ea6158380c
kavita-0.8.7-linux-x64.tar.gz SHA1 e19aaf00a0dae3248220d37930f9629b49578f55
kavita-0.8.7-linux-x64.tar.gz SHA256 88ea7862ae732a80e562139d3fa5e404f52b3762af8ec5ae2e83266e251f63e4
kavita-0.8.7-linux-x64.tar.gz MD5 4e64bccaecf5ed58b36096ea6158380c
kavita-0.8.7-linux-arm.tar.gz SHA1 30eb95ca9926c5208b5d42db785881dcd711f6eb
kavita-0.8.7-linux-arm.tar.gz SHA256 dd2f556ccc17d9d241871f451964a19169871d6a58f1f3de2af8627c8b022ed8
kavita-0.8.7-linux-arm.tar.gz MD5 da7ed971961eaad2514518da63538bb8
kavita-0.8.7-linux-arm64.tar.gz SHA1 2f51d508e0dcca4955798619a95cb26901dc1365
kavita-0.8.7-linux-arm64.tar.gz SHA256 e54108d9a39258d1bed77e4abeff5419d04f146a15c2c0d862e8354eb5634276
kavita-0.8.7-linux-arm64.tar.gz MD5 7f6df5347f76c44525e4bf8a6600eafb
1 change: 1 addition & 0 deletions cross/kiwix-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

REQUIRED_MIN_DSM = 7.0
UNSUPPORTED_ARCHS = comcerto2k
REQUIRED_MIN_SRM = 1.3

DEPENDS = cross/libkiwix

Expand Down
1 change: 1 addition & 0 deletions cross/libkiwix/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
# compiler too old for cross/libzim
REQUIRED_MIN_DSM = 7.0
UNSUPPORTED_ARCHS = comcerto2k
REQUIRED_MIN_SRM = 1.3

DEPENDS = cross/libzim cross/pugixml cross/curl cross/libmicrohttpd cross/mustache

Expand Down
9 changes: 5 additions & 4 deletions cross/libtorrent-rakshasa/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/zlib cross/openssl3 cross/libsigc++

HOMEPAGE = https://github.com/rakshasa/rtorrent/wiki
COMMENT = LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code.
LICENSE = GPLv2

# A compiler with support for C++14 language features is required.
REQUIRED_MIN_DSM = 7.0
UNSUPPORTED_ARCHS = comcerto2k
REQUIRED_MIN_SRM = 1.3

HOMEPAGE = https://github.com/rakshasa/rtorrent/wiki
COMMENT = LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code.
LICENSE = GPLv2

GNU_CONFIGURE = 1

Expand Down
1 change: 0 additions & 1 deletion cross/libudev_204/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ libudev_post_configure:
@$(RUN) sed -i.bak ":1;/lookup_syscall/{n;s/unsigned int/size_t/;b1}" $(WORK_DIR)/$(PKG_DIR)/src/core/syscall-list.c
@$(RUN) sed -i.bak -e "/load_fragment_gperf_lookup/s/unsigned/size_t/" $(WORK_DIR)/$(PKG_DIR)/src/core/load-fragment.h
@$(RUN) sed -i.bak -e "/logind_gperf_lookup/s/unsigned/size_t/" $(WORK_DIR)/$(PKG_DIR)/src/login/logind.h
@$(RUN) sed -i.bak -e "s/SG_FLAG_LUN_INHIBIT/SG_FLAG_UNUSED_LUN_INHIBIT/g" $(WORK_DIR)/$(PKG_DIR)/src/udev/cdrom_id/cdrom_id.c
@$(RUN) sed -i.bak -e "/lookup_key/s/unsigned int/size_t/" $(WORK_DIR)/$(PKG_DIR)/src/udev/keymap/keymap.c
@$(RUN) sed -i.bak -e "/mtd-user.h/i\$\\#ifndef u_int32_t\ntypedef unsigned int u_int32_t;\n#endif" -e "/mtd-user.h/a\$\\#include <stdint.h>" $(WORK_DIR)/$(PKG_DIR)/src/udev/mtd_probe/mtd_probe.h

Expand Down
20 changes: 20 additions & 0 deletions cross/libudev_204/patches/002-fix_cdrom_id.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Most of the toolchains have SG_FLAG_UNUSED_LUN_INHIBIT instead of SG_FLAG_LUN_INHIBIT
# As defined in scsi/sg.h of sysroot includes
#
# Some toolchains have the expected SG_FLAG_LUN_INHIBIT defined,
# so we can't globally replace SG_FLAG_LUN_INHIBIT by SG_FLAG_UNUSED_LUN_INHIBIT
#
--- src/udev/cdrom_id/cdrom_id.c.orig 2013-05-09 13:45:50.000000000 +0000
+++ src/udev/cdrom_id/cdrom_id.c 2025-09-21 19:46:15.895246924 +0000
@@ -161,7 +161,11 @@
cmd->sg_io.mx_sb_len = sizeof(cmd->_sense);
cmd->sg_io.cmdp = cmd->cgc.cmd;
cmd->sg_io.sbp = cmd->_sense.u;
+#if defined(SG_FLAG_LUN_INHIBIT)
cmd->sg_io.flags = SG_FLAG_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
+#else
+ cmd->sg_io.flags = SG_FLAG_UNUSED_LUN_INHIBIT | SG_FLAG_DIRECT_IO;
+#endif
}

static void scsi_cmd_set(struct udev *udev, struct scsi_cmd *cmd, size_t i, unsigned char arg)
35 changes: 35 additions & 0 deletions cross/libudev_204/patches/003-fix-for-newer-glibc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Ensure major(), minor() and makedev() are defined
# Fix for SRM 1.3 having glibc 2.32
#
# New versions of glibc (since 2.28) and musl (since 1.1.23) actually no longer provide a definition
# of major by including sys/types.h.
# It's a bit unfortunate since on Linux, we now need to include sys/sysmacros.h
#
# Solution based on https://github.com/kristapsdz/openrsync/issues/13#issuecomment-559931285
#
--- src/libudev/libudev.h.orig 2013-05-09 13:45:50.000000000 +0000
+++ src/libudev/libudev.h 2025-09-21 18:44:53.459980291 +0000
@@ -22,6 +22,10 @@

#include <stdarg.h>
#include <sys/types.h>
+#ifndef major
+// for the case that sys/sysmacros.h is not included within sys/types.h
+#include <sys/sysmacros.h>
+#endif
#include <sys/stat.h>

#ifdef __cplusplus
--- src/shared/util.h.orig 2013-05-09 13:45:50.000000000 +0000
+++ src/shared/util.h 2025-09-21 18:53:26.206312863 +0000
@@ -33,6 +33,10 @@
#include <sched.h>
#include <limits.h>
#include <sys/types.h>
+#ifndef major
+// for the case that sys/sysmacros.h is not included within sys/types.h
+#include <sys/sysmacros.h>
+#endif
#include <sys/stat.h>
#include <dirent.h>
#include <sys/resource.h>
5 changes: 3 additions & 2 deletions cross/libudev_219/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ CONFIGURE_ARGS += --with-dbuspolicydir=/usr/share/dbus-1/system.d
CONFIGURE_ARGS += --with-dbussessionservicedir=/usr/share/dbus-1/services
CONFIGURE_ARGS += --with-dbussystemservicedir=/usr/share/dbus-1/system-services

ADDITIONAL_CFLAGS = -DSG_FLAG_LUN_INHIBIT=2

include ../../mk/spksrc.common.mk

# Build fix for aarch64 and x64 for DSM-7.2:
# error: static declaration of 'renameat2' follows non-static declaration
ifeq ($(call version_ge, $(TCVERSION), 7.2),1)
CONFIGURE_ARGS += ac_cv_have_decl_renameat2=yes
else ifeq ($(strip $(TCVERSION)),1.3)
# Same for armv7 and aarch64 for SRM 1.3 (but SRM 1.3 is still on systemd 204):
CONFIGURE_ARGS += ac_cv_have_decl_renameat2=yes
endif

include ../../mk/spksrc.cross-cc.mk
Expand Down
Loading
Loading