mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 07:22:56 +02:00
elogind: fix musl.
This commit is contained in:
parent
38600e70e0
commit
3ceb0a7680
2 changed files with 18 additions and 1 deletions
17
srcpkgs/elogind/patches/fix-musl.patch
Normal file
17
srcpkgs/elogind/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git a/src/basic/fs-util.h b/src/basic/fs-util.h
|
||||
index 294d617cd..2000b38a9 100644
|
||||
--- src/basic/fs-util.h
|
||||
+++ src/basic/fs-util.h
|
||||
@@ -51,7 +51,12 @@ int fchmod_umask(int fd, mode_t mode);
|
||||
|
||||
int fd_warn_permissions(const char *path, int fd);
|
||||
|
||||
+#ifdef __GLIBC__
|
||||
#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)
|
||||
+#else
|
||||
+#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), 0)
|
||||
+#endif
|
||||
+
|
||||
|
||||
int touch_file(const char *path, bool parents, usec_t stamp, uid_t uid, gid_t gid, mode_t mode);
|
||||
int touch(const char *path);
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'elogind'
|
||||
pkgname=elogind
|
||||
version=228.3
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="automake libxslt intltool libtool pkg-config gperf docbook-xsl gettext-devel"
|
||||
makedepends="libcap-devel libmount-devel libseccomp-devel libblkid-devel pam-devel gettext-devel eudev-libudev-devel glib-devel acl-devel"
|
||||
|
|
Loading…
Add table
Reference in a new issue