Message ID | 20240908114312.3883312-1-liezhi.yang@windriver.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [nfs-utils,1/2] support/include/junction.h: Define macros for musl | expand |
diff --git a/support/include/junction.h b/support/include/junction.h index 7257d80b..d127dd55 100644 --- a/support/include/junction.h +++ b/support/include/junction.h @@ -26,6 +26,16 @@ #ifndef _NFS_JUNCTION_H_ #define _NFS_JUNCTION_H_ +/* For musl, refered to glibc's sys/cdefs.h */ +#ifndef __attribute_malloc__ +#define __attribute_malloc__ __attribute__((__malloc__)) +#endif + +/* For musl, refered to glibc's sys/stat.h */ +#ifndef ALLPERMS +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ +#endif + #include <stdint.h> /*