summaryrefslogtreecommitdiff
path: root/util/nvmutil
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil')
-rw-r--r--util/nvmutil/nvmutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index a489dd8d..0eaa8f43 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -83,7 +83,7 @@ main(int argc, char *argv[])
void (*cmd)(void) = NULL;
const char *strMac = NULL, *strRMac = "??:??:??:??:??:??";
-#ifdef HAVE_PLEDGE /* openbsd */
+#ifdef __OpenBSD__
if (pledge("stdio wpath", NULL) == -1)
err(errno, "pledge");
#endif
@@ -96,7 +96,7 @@ main(int argc, char *argv[])
if (argc == 3) {
if (strcmp(COMMAND, "dump") == 0) {
-#ifdef HAVE_PLEDGE /* openbsd */
+#ifdef __OpenBSD__
if (pledge("stdio rpath", NULL) == -1)
err(errno, "pledge");
#endif