summaryrefslogtreecommitdiffstats
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
commit677b18213e2f3cdbe7bb2c9df54a0e2488c89714 (patch)
tree4727cd1e0862c2b14bd4097b62b464fc4cdb6a9b /main.c
parent4530c10e628e181f5c464d1c4f3257f506b8f0ee (diff)
downloadmandoc-677b18213e2f3cdbe7bb2c9df54a0e2488c89714.tar.gz
Some Linux-isms.
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.c b/main.c
index fff3bed6..703b9483 100644
--- a/main.c
+++ b/main.c
@@ -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. */