wrap pledge stuff into an ifdef __OpenBSD__ block.

This commit is contained in:
Joris Vink 2019-11-07 08:29:38 +01:00
parent bb39643b48
commit e2930f29c1
1 changed files with 2 additions and 0 deletions

View File

@ -229,11 +229,13 @@ int keymgr_active = 0;
char *keymgr_root_path = NULL;
char *keymgr_runas_user = NULL;
#if defined(__OpenBSD__)
#if defined(KORE_USE_ACME)
static const char *keymgr_pledges = "stdio rpath wpath cpath";
#else
static const char *keymgr_pledges = "stdio rpath";
#endif
#endif
void
kore_keymgr_run(void)