aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-06-21 10:34:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-06-21 10:34:14 +0000
commitdedef7e41d8b89900b4688d30c24a0642563d78d (patch)
tree4b55e28361cbc27185cb0b7f08ed004a9b123388
parent63bf683231aac42c3c172ff94de8bb5fa3d0a581 (diff)
downloadmandoc-dedef7e41d8b89900b4688d30c24a0642563d78d.tar.gz
mandoc-dedef7e41d8b89900b4688d30c24a0642563d78d.tar.zst
mandoc-dedef7e41d8b89900b4688d30c24a0642563d78d.zip
#include <stddef.h>, needed for NULL; bug reported by op@
-rw-r--r--compat_strsep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat_strsep.c b/compat_strsep.c
index 9765ac82..29865ba4 100644
--- a/compat_strsep.c
+++ b/compat_strsep.c
@@ -1,4 +1,4 @@
-/* $Id: compat_strsep.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */
+/* $Id: compat_strsep.c,v 1.6 2022/06/21 10:34:14 schwarze Exp $ */
/* $OpenBSD: strsep.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */
/*-
@@ -31,6 +31,8 @@
*/
#include "config.h"
+#include <stddef.h>
+
/*
* Get next token from string *stringp, where tokens are possibly-empty
* strings separated by characters from delim.