search for: e4d76677

Displaying 3 results from an estimated 3 matches for "e4d76677".

2020 Aug 18
1
Re: [PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...n); You'll probably want a header to guarantee size_t is defined (either stddef.h or sys/types.h works). > + > +#endif > + > +#endif /* NBDKIT_STRNDUP_H */ > diff --git a/common/replacements/syslog.h b/common/replacements/syslog.h > new file mode 100644 > index 00000000..e4d76677 > --- /dev/null > +++ b/common/replacements/syslog.h > +#include <config.h> > + > +#ifdef HAVE_SYSLOG_H > + > +#include_next <syslog.h> I guess our insistence on a decent compiler (for other reasons such as __attribute__((cleanup))) means we can rely on #include_...
2020 Aug 18
0
[PATCH nbdkit 3/9] server: Add general replacements for missing functions using LIBOBJS.
...KIT_STRNDUP_H + +#include <config.h> + +#ifdef HAVE_STRNDUP + +#include <string.h> + +#else + +char *strndup(const char *s, size_t n); + +#endif + +#endif /* NBDKIT_STRNDUP_H */ diff --git a/common/replacements/syslog.h b/common/replacements/syslog.h new file mode 100644 index 00000000..e4d76677 --- /dev/null +++ b/common/replacements/syslog.h @@ -0,0 +1,67 @@ +/* nbdkit + * Copyright (C) 2019 Red Hat Inc. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: +...
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many