Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 864383 Details for
Bug 830081
net-fs/nfs-utils-2.5.4-r3 - ../.../junction.h: error: expected ; before char
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-Fix-musl-clang-compile.patch
0001-Fix-musl-clang-compile.patch (text/plain), 2.85 KB, created by
David Carlos Manuelda
on 2023-06-21 23:47:59 UTC
(
hide
)
Description:
0001-Fix-musl-clang-compile.patch
Filename:
MIME Type:
Creator:
David Carlos Manuelda
Created:
2023-06-21 23:47:59 UTC
Size:
2.85 KB
patch
obsolete
>From 8f3aea4de191eef2fae9c9b94040b2b39e939715 Mon Sep 17 00:00:00 2001 >From: David Carlos Manuelda <StormByte@gmail.com> >Date: Thu, 22 Jun 2023 01:44:47 +0200 >Subject: [PATCH] Fix musl+clang compile: > >* Replace __attribute_malloc__ with __attribute__((__malloc__)) >* The ALLPERMS define is not specified in POSIX >--- > support/include/junction.h | 2 +- > support/junction/junction.c | 4 ++++ > support/junction/locations.c | 2 +- > support/junction/nfs.c | 4 ++++ > support/junction/path.c | 8 +++++++- > 5 files changed, 17 insertions(+), 3 deletions(-) > >diff --git a/support/include/junction.h b/support/include/junction.h >index 7257d80..43105aa 100644 >--- a/support/include/junction.h >+++ b/support/include/junction.h >@@ -125,7 +125,7 @@ void nfs_free_location(struct nfs_fsloc *location); > void nfs_free_locations(struct nfs_fsloc *locations); > struct nfs_fsloc *nfs_new_location(void); > >-__attribute_malloc__ >+__attribute__((__malloc__)) > char **nfs_dup_string_array(char **array); > void nfs_free_string_array(char **array); > >diff --git a/support/junction/junction.c b/support/junction/junction.c >index 0628bb0..33746f1 100644 >--- a/support/junction/junction.c >+++ b/support/junction/junction.c >@@ -27,6 +27,10 @@ > #include <config.h> > #endif > >+#ifndef ALLPERMS >+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) >+#endif >+ > #include <sys/types.h> > #include <sys/stat.h> > >diff --git a/support/junction/locations.c b/support/junction/locations.c >index c577981..e7bc21d 100644 >--- a/support/junction/locations.c >+++ b/support/junction/locations.c >@@ -63,7 +63,7 @@ nfs_free_string_array(char **array) > * > * Caller must free the returned array with nfs_free_string_array() > */ >-__attribute_malloc__ char ** >+__attribute__((__malloc__)) char ** > nfs_dup_string_array(char **array) > { > unsigned int size, i; >diff --git a/support/junction/nfs.c b/support/junction/nfs.c >index 73e3533..4072463 100644 >--- a/support/junction/nfs.c >+++ b/support/junction/nfs.c >@@ -68,6 +68,10 @@ > * directory's mode bits are restored from this information. > */ > >+#ifndef ALLPERMS >+#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) >+#endif >+ > #include <sys/types.h> > #include <sys/stat.h> > >diff --git a/support/junction/path.c b/support/junction/path.c >index 13a1438..a3dc9c2 100644 >--- a/support/junction/path.c >+++ b/support/junction/path.c >@@ -23,6 +23,12 @@ > * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt > */ > >+#include <config.h> >+ >+#ifdef HAVE_LIMITS_H >+#include <limits.h> >+#endif >+ > #include <sys/types.h> > #include <sys/stat.h> > >@@ -99,7 +105,7 @@ nsdb_alloc_zero_component_pathname(char ***path_array) > * Remove multiple sequential slashes and any trailing slashes, > * but leave "/" by itself alone. > */ >-static __attribute_malloc__ char * >+__attribute__((__malloc__)) char * > nsdb_normalize_path(const char *pathname) > { > size_t i, j, len; >-- >2.41.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 830081
:
760449
|
760450
|
760451
|
760452
|
760453
|
760454
|
760455
|
864383
|
864384
|
882525