summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 6c005a66..6c818252 100644
--- a/main.c
+++ b/main.c
@@ -19,6 +19,7 @@
#include "config.h"
#include <sys/types.h>
+#include <sys/param.h> /* MACHINE */
#include <assert.h>
#include <ctype.h>
@@ -328,6 +329,10 @@ main(int argc, char *argv[])
argv++;
argc--;
}
+ if (search.arch == NULL)
+ search.arch = getenv("MACHINE");
+ if (search.arch == NULL)
+ search.arch = MACHINE;
}
rc = MANDOCLEVEL_OK;