Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Improve portability
Baptiste Daroussin committed 7 years ago
commit 8b232ddd06b6b1747f8d411c904800f3a49df912
parent c2f802d
1 file changed +5 -0
modified libpkg/pkg_printf.c
@@ -29,6 +29,11 @@
#include <sys/types.h>
#include <sys/stat.h>

+
/* musl libc apparently does not have ALLPERMS */
+
#ifndef ALLPERMS
+
#define     ALLPERMS        (S_ISUID|S_ISGID|S_ISTXT|S_IRWXU|S_IRWXG|S_IRWXO)
+
#endif
+

#include <assert.h>
#include <ctype.h>
#include <inttypes.h>