On Thu, Aug 20, 2020 at 10:26:06AM -0500, Eric Blake wrote:
On 8/20/20 6:37 AM, Richard W.M. Jones wrote:
Especially on Windows, some common functions are missing. Use the autoconf LIBOBJS mechanism to replace these functions.
This includes replacement functions for:
Function names Implementation Origin
getdelim, getline general purpose NetBSD under a compatible license
openlog, syslog, Win32 written by me vsyslog
realpath Win32 written by me
strndup general purpose NetBSD under a compatible license
This should do nothing on existing supported platforms. It is only intended in preparation for porting nbdkit to Windows. ---
+++ b/common/replacements/Makefile.am @@ -0,0 +1,52 @@ +# nbdkit +# Copyright (C) 2019 Red Hat Inc.
2020 if you want; but that's a lot of files to edit in the series.
They're left over from when I wrote this particular commit in 2018/2019. I may change them if I have time. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW