diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-24 18:15:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-24 18:15:13 +0000 |
commit | d5899efe4a68c00b14f7b4e40042b60c86db4898 (patch) | |
tree | 0d786dd7fe0966c21ec264b2b0d194081dd4df84 /config.h.post | |
parent | df50b5d64e0d28bd648ff97b998eced503c945fc (diff) | |
download | mandoc-d5899efe4a68c00b14f7b4e40042b60c86db4898.tar.gz mandoc-d5899efe4a68c00b14f7b4e40042b60c86db4898.tar.zst mandoc-d5899efe4a68c00b14f7b4e40042b60c86db4898.zip |
Scary-looking but otherwise harmless changes allow me to build for Windows.
That is to say, with mingw32. This amounts to the following:
(1) break compat.c into compat_strlcpy.c and compat_strlcat.c
(2) add compat_getsubopt.c (from OpenBSD) and test-getsubopt.c
(3) add test-strptime.c for HAVE_STRPTIME
(4) add ifdef bits here and there, where necessary
(5) remove some harmless unportable stuff (u_char, localtime_r)
I've added the appropriate mdocml.zip target to the Makefile, too.
Diffstat (limited to 'config.h.post')
-rw-r--r-- | config.h.post | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h.post b/config.h.post index 81c01b93..3cdf9a78 100644 --- a/config.h.post +++ b/config.h.post @@ -21,5 +21,9 @@ extern size_t strlcat(char *, const char *, size_t); #ifndef HAVE_STRLCPY extern size_t strlcpy(char *, const char *, size_t); #endif +#ifndef HAVE_GETSUBOPT +extern int getsubopt(char **, char * const *, char **); +extern char *suboptarg; +#endif #endif /* MANDOC_CONFIG_H */ |