]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix cygwin strerror_r failure
authorEric Blake <eblake@redhat.com>
Fri, 11 Feb 2011 19:32:17 +0000 (12:32 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 11 Feb 2011 19:32:17 +0000 (12:32 -0700)
Building the 0.8.8 release candidate on cygwin produced this compiler
warning, which is indicative of catastrophic failure on any attempt to
print an error message with errno turned to a string:

  CC       strerror_r.lo
strerror_r.c: In function 'rpl_strerror_r':
strerror_r.c:67: warning: assignment makes integer from pointer without a cast

This has been fixed in gnulib.

* .gnulib: Update to latest, for strerror_r fix.
* src/util/memory.c (includes): Satisfy 'make syntax-check'.

.gnulib
src/util/memory.c

diff --git a/.gnulib b/.gnulib
index 2f41af65087fb2460779bc4e7fb62453f79ebae3..4cce65cb2f10936f13760625f39d532564984fde 160000 (submodule)
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 2f41af65087fb2460779bc4e7fb62453f79ebae3
+Subproject commit 4cce65cb2f10936f13760625f39d532564984fde
index 03e2e80982fcf20bbf266fbacd447ded7a912a3b..bfa32a8918eb28b13d124077deba0a343de12cb5 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * memory.c: safer memory allocation
  *
- * Copyright (C) 2010 Red Hat, Inc.
+ * Copyright (C) 2010-2011 Red Hat, Inc.
  * Copyright (C) 2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -22,7 +22,6 @@
 
 #include <config.h>
 #include <stdlib.h>
-#include <stddef.h>
 
 #include "memory.h"
 #include "ignore-value.h"