aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/soelim.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:22:59 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-05-20 22:22:59 +0000
commitea3a546595c994f7d63049af16eecab1660ef4fa (patch)
tree878fffc5e32865bc50e1b26525056762d1b60e44 /soelim.c
parent7578dcc6592a42a9ad7fbebacd5fcdfba0238f9e (diff)
downloadmandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.tar.gz
mandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.tar.zst
mandoc-ea3a546595c994f7d63049af16eecab1660ef4fa.zip
* remove FreeBSDisms
* purge and sort headers * add build and compat glue * and LICENSE information for soelim(1)
Diffstat (limited to 'soelim.c')
-rw-r--r--soelim.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/soelim.c b/soelim.c
index de6911f3..c1fa4adb 100644
--- a/soelim.c
+++ b/soelim.c
@@ -1,4 +1,5 @@
-/*-
+/* $Id: soelim.c,v 1.2 2015/05/20 22:22:59 schwarze Exp $ */
+/*
* Copyright (c) 2014 Baptiste Daroussin <bapt@FreeBSD.org>
* All rights reserved.
*
@@ -24,20 +25,20 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
#include <sys/param.h>
+#include <sys/types.h>
-#define _WITH_GETLINE
+#include <ctype.h>
+#include <err.h>
#include <stdio.h>
-#include <unistd.h>
#include <stdlib.h>
-#include <stdbool.h>
#include <string.h>
+#if HAVE_STRINGLIST
#include <stringlist.h>
-#include <err.h>
-#include <ctype.h>
+#else
+#include "compat_stringlist.h"
+#endif
+#include <unistd.h>
#define C_OPTION 0x1