Control: tags -1 patch Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following: * d/p/glibc-2.28.patch: Fix FTBFS against glibc 2.28. Thanks for considering the patch. Logan Rosen -- System Information: Debian Release: buster/sid APT prefers cosmic-updates APT policy: (500, 'cosmic-updates'), (500, 'cosmic-security'), (500, 'cosmic'), (400, 'cosmic-proposed'), (100, 'cosmic-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.18.0-13-generic (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru xnbd-0.3.0/debian/patches/glibc-2.28.patch xnbd-0.3.0/debian/patches/glibc-2.28.patch --- xnbd-0.3.0/debian/patches/glibc-2.28.patch 1969-12-31 19:00:00.000000000 -0500 +++ xnbd-0.3.0/debian/patches/glibc-2.28.patch 2019-01-12 23:33:17.000000000 -0500 @@ -0,0 +1,19 @@ +Description: Fix build with glibc 2.28 +Author: Logan Rosen <lo...@ubuntu.com> +Forwarded: https://bitbucket.org/hirofuchi/xnbd/pull-requests/1 +Last-Update: 2019-01-12 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/lib/io.h ++++ b/lib/io.h +@@ -35,6 +35,10 @@ + #include <sys/stat.h> + #include <sys/mman.h> + ++#ifdef __GNU_LIBRARY__ ++#include <sys/sysmacros.h> ++#endif ++ + + void read_all(int fd, void *buf, size_t len); + void write_all(int fd, const void *buf, size_t len); diff -Nru xnbd-0.3.0/debian/patches/series xnbd-0.3.0/debian/patches/series --- xnbd-0.3.0/debian/patches/series 2013-05-20 10:47:09.000000000 -0400 +++ xnbd-0.3.0/debian/patches/series 2019-01-12 23:32:30.000000000 -0500 @@ -0,0 +1 @@ +glibc-2.28.patch