-/* $Id: mandocd.c,v 1.3 2017/02/06 19:02:37 schwarze Exp $ */
+/* $Id: mandocd.c,v 1.6 2017/06/24 14:38:32 schwarze Exp $ */
/*
* Copyright (c) 2017 Michael Stapelberg <stapelberg@debian.org>
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*/
#include "config.h"
+#if HAVE_CMSG_XPG42
+#define _XPG4_2
+#endif
+
#include <sys/types.h>
#include <sys/socket.h>
static void process(struct mparse *, enum outt, void *);
static int read_fds(int, int *);
-static void usage(void) __attribute__((noreturn));
+static void usage(void) __attribute__((__noreturn__));
#define NUM_FDS 3
mchars_alloc();
parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1,
- MANDOCLEVEL_BADARG, NULL, defos);
+ MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, defos);
memset(&options, 0, sizeof(options));
switch (outtype) {