[libvirt] [PATCH 2/2] build: update gnulib

Eric Blake eblake at redhat.com
Tue May 11 15:40:25 UTC 2010


* .gnulib: Update to latest.
* src/esx/esx_util.c (AI_ADDRCONFIG): Rely on gnulib.
* src/remote/remote_driver.c (AI_ADDRCONFIG): Likewise.
* tools/virsh.c (WEXITSTATUS, O_SYNC): Likewise.
---
 .gnulib                    |    2 +-
 src/esx/esx_util.c         |    6 ------
 src/remote/remote_driver.c |    5 -----
 tools/virsh.c              |    7 +------
 4 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/.gnulib b/.gnulib
index e2843e3..28e5820 160000
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit e2843e30e8c2885eb8cbc77e20c4e0f4d562d44d
+Subproject commit 28e58203a7ab14264f8fa450884a89e9ae48025c
diff --git a/src/esx/esx_util.c b/src/esx/esx_util.c
index 91d19e9..51c9afc 100644
--- a/src/esx/esx_util.c
+++ b/src/esx/esx_util.c
@@ -38,12 +38,6 @@

 #define VIR_FROM_THIS VIR_FROM_ESX

-/* AI_ADDRCONFIG is missing on some systems. */
-#ifndef AI_ADDRCONFIG
-# define AI_ADDRCONFIG 0
-#endif
-
-

 int
 esxUtil_ParseQuery(xmlURIPtr uri, char **transport, char **vCenter,
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index bd7d617..e4a68ad 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -68,11 +68,6 @@

 #include <poll.h>

-/* AI_ADDRCONFIG is missing on some systems. */
-#ifndef AI_ADDRCONFIG
-# define AI_ADDRCONFIG 0
-#endif
-
 #include "virterror_internal.h"
 #include "logging.h"
 #include "datatypes.h"
diff --git a/tools/virsh.c b/tools/virsh.c
index 21325c3..693d409 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -21,6 +21,7 @@
 #include <getopt.h>
 #include <sys/types.h>
 #include <sys/time.h>
+#include <sys/wait.h>
 #include "c-ctype.h"
 #include <fcntl.h>
 #include <locale.h>
@@ -82,9 +83,6 @@ static char *progname;
 #define LVL_WARNING   "WARNING"
 #define LVL_ERROR     "ERROR"

-#ifndef WEXITSTATUS
-# define WEXITSTATUS(x) ((x) & 0xff)
-#endif
 /**
  * vshErrorLevel:
  *
@@ -9930,9 +9928,6 @@ vshInit(vshControl *ctl)
     return TRUE;
 }

-#ifndef O_SYNC
-# define O_SYNC 0
-#endif
 #define LOGFILE_FLAGS (O_WRONLY | O_APPEND | O_CREAT | O_SYNC)

 /**
-- 
1.7.0.1




More information about the libvir-list mailing list