and support the MACHINE environment variable as documented in man(1).
Missing feature reported by pascal@.
-/* $OpenBSD: main.c,v 1.121 2015/01/15 04:26:06 schwarze Exp $ */
+/* $OpenBSD: main.c,v 1.122 2015/01/16 21:12:01 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
*/
#include <sys/types.h>
+#include <sys/param.h> /* MACHINE */
#include <assert.h>
#include <ctype.h>
argv++;
argc--;
}
+ if (search.arch == NULL)
+ search.arch = getenv("MACHINE");
+ if (search.arch == NULL)
+ search.arch = MACHINE;
}
rc = MANDOCLEVEL_OK;