Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add some compat macros from BSD.
Vsevolod Stakhov committed 11 years ago
commit 8acbf39bf263691c9da6c7416e28045f13e7b598
parent 4e1aca1
1 file changed +20 -1
modified compat/bsd_compat.h
@@ -80,7 +80,9 @@ ssize_t readlinkat(int fd, const char *restrict path, char *restrict buf, size_t
#endif

#if !HAVE_UNLINKAT
-
#define AT_REMOVEDIR	0x800
+
# ifndef AT_REMOVEDIR
+
#  define AT_REMOVEDIR	0x800
+
# endif
int unlinkat(int fd, const char *path, int flag);
#endif

@@ -88,4 +90,21 @@ int unlinkat(int fd, const char *path, int flag);
long long strtonum(const char *, long long, long long, const char **);
#endif

+
#ifndef _PATH_GROUP
+
#define _PATH_GROUP "/etc/group"
+
#endif
+

+
#ifndef __FBSDID
+
#define __FBSDID(x)
+
#endif
+

+
#ifndef EAUTH
+
#define EAUTH 80
+
#endif
+

+
#ifndef ENEEDAUTH
+
#define ENEEDAUTH 81
+
#endif
+

+

#endif