diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-05-24 23:33:24 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-05-24 23:33:24 +0000 |
commit | 69f23bc61c36de2f09f0f566e98df6fce92c6571 (patch) | |
tree | 52c3f158d399985621c082cccb9e63856807639a /usr.bin/mandoc/libmdoc.h | |
parent | d380d0365e1897697b6f2c5757b403316938e0d7 (diff) |
Support -Ios='OpenBSD 5.1' to override uname(3) as the source of the
default value for the mdoc(7) .Os macro.
Needed for man.cgi on the OpenBSD website.
Problem with man.cgi first noticed by deraadt@;
beck@ and deraadt@ agree with the way to solve the issue.
Diffstat (limited to 'usr.bin/mandoc/libmdoc.h')
-rw-r--r-- | usr.bin/mandoc/libmdoc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/libmdoc.h b/usr.bin/mandoc/libmdoc.h index 81bebbfbfe0..b2903007b1e 100644 --- a/usr.bin/mandoc/libmdoc.h +++ b/usr.bin/mandoc/libmdoc.h @@ -1,4 +1,4 @@ -/* $Id: libmdoc.h,v 1.48 2011/12/02 01:45:43 schwarze Exp $ */ +/* $Id: libmdoc.h,v 1.49 2012/05/24 23:33:23 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -24,6 +24,7 @@ enum mdoc_next { struct mdoc { struct mparse *parse; /* parse pointer */ + char *defos; /* default argument for .Os */ int flags; /* parse flags */ #define MDOC_HALT (1 << 0) /* error in parse: halt */ #define MDOC_LITERAL (1 << 1) /* in a literal scope */ |