summaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 16:40:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 16:40:49 +0000
commit36ca5446d30ace05d796a3cdb1c9781f41b090cc (patch)
tree0837a0e9dc29e47e0a8b62a6a8a8325ead746e07 /main.c
parent57690ec5caf9f8f4be19a0437f7a36b77ff4c9b4 (diff)
downloadmandoc-36ca5446d30ace05d796a3cdb1c9781f41b090cc.tar.gz
mandoc-36ca5446d30ace05d796a3cdb1c9781f41b090cc.tar.zst
mandoc-36ca5446d30ace05d796a3cdb1c9781f41b090cc.zip
Some Linux-isms.
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4571bc2f..188a3732 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.2 2009/03/19 16:18:36 kristaps Exp $ */
+/* $Id: main.c,v 1.3 2009/03/19 16:40:49 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -28,6 +28,13 @@
#include "mdoc.h"
+#ifdef __linux__
+extern int getsubopt(char **, char * const *, char **);
+# ifndef __dead
+# define __dead __attribute__((__noreturn__))
+# endif
+#endif
+
#define WARN_WALL 0x03 /* All-warnings mask. */
#define WARN_WCOMPAT (1 << 0) /* Compatibility warnings. */
#define WARN_WSYNTAX (1 << 1) /* Syntax warnings. */