Don't assume that errno will be implicitly available. Signed-off-by: Eric Blake <eblake@redhat.com> --- src/tls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tls.c b/src/tls.c index 5d380e3..0e9ea11 100644 --- a/src/tls.c +++ b/src/tls.c @@ -38,6 +38,7 @@ #include <string.h> #include <unistd.h> #include <assert.h> +#include <errno.h> #include <pthread.h> -- 2.9.3
Richard W.M. Jones
2017-Feb-01 11:04 UTC
[Libguestfs] [nbdkit PATCH] tls: Fix build on RHEL 5
On Tue, Jan 31, 2017 at 05:04:42PM -0600, Eric Blake wrote:> Don't assume that errno will be implicitly available. > > Signed-off-by: Eric Blake <eblake at redhat.com> > --- > src/tls.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/tls.c b/src/tls.c > index 5d380e3..0e9ea11 100644 > --- a/src/tls.c > +++ b/src/tls.c > @@ -38,6 +38,7 @@ > #include <string.h> > #include <unistd.h> > #include <assert.h> > +#include <errno.h> > > #include <pthread.h> >Thanks - pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Apparently Analagous Threads
- [nbdkit PATCH] test-layers: Avoid thread leak
- [nbdkit PATCH] truncate: Detect large image overflow with round-up
- [nbdkit PATCH 1/4] cleanup: Move cleanup.c to common
- Re: [nbdkit PATCH 6/5] nbd: More debug details
- [nbdkit PATCH] log: Allow user option of appending to log