From d5899efe4a68c00b14f7b4e40042b60c86db4898 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 24 Jul 2011 18:15:13 +0000 Subject: 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. --- test-getsubopt.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test-getsubopt.c (limited to 'test-getsubopt.c') diff --git a/test-getsubopt.c b/test-getsubopt.c new file mode 100644 index 00000000..25e11246 --- /dev/null +++ b/test-getsubopt.c @@ -0,0 +1,12 @@ +#if defined(__linux__) || defined(__MINT__) +# define _GNU_SOURCE /* getsubopt() */ +#endif + +#include + +int +main(int argc, char **argv) +{ + getsubopt(argv, argv, argv); + return 0; +} -- cgit v1.2.3-56-ge451