All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: build fix
@ 2012-05-16 15:51 Christoph Egger
  2012-05-17 11:41 ` Roger Pau Monne
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Christoph Egger @ 2012-05-16 15:51 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 830 bytes --]


Fix this build error:

libxl_aoutils.c: In function 'libxl__openptys':
libxl_aoutils.c:281:13: error: passing argument 4 of 'openpty' discards
qualifiers from pointer target type
/usr/include/util.h:92:6: note: expected 'struct termios *' but argument
is of type 'const struct termios *'
libxl_aoutils.c:281:13: error: passing argument 5 of 'openpty' discards
qualifiers from pointer target type
/usr/include/util.h:92:6: note: expected 'struct winsize *' but argument
is of type 'const struct winsize *'

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>



-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl.diff --]
[-- Type: text/plain, Size: 1139 bytes --]

diff -r 1463985435ba tools/libxl/libxl_aoutils.c
--- a/tools/libxl/libxl_aoutils.c	Wed May 16 17:17:17 2012 +0200
+++ b/tools/libxl/libxl_aoutils.c	Wed May 16 17:47:51 2012 +0200
@@ -230,8 +230,8 @@ static void openpty_exited(libxl__egc *e
 }
 
 int libxl__openptys(libxl__openpty_state *op,
-                    const struct termios *termp,
-                    const struct winsize *winp) {
+                    struct termios *termp,
+                    struct winsize *winp) {
     /*
      * This is completely crazy.  openpty calls grantpt which the spec
      * says may fork, and may not be called with a SIGCHLD handler.
diff -r 1463985435ba tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h	Wed May 16 17:17:17 2012 +0200
+++ b/tools/libxl/libxl_internal.h	Wed May 16 17:47:51 2012 +0200
@@ -1739,8 +1739,8 @@ struct libxl__openpty_result {
 };
 
 int libxl__openptys(libxl__openpty_state *op,
-                    const struct termios *termp,
-                    const struct winsize *winp);
+                    struct termios *termp,
+                    struct winsize *winp);
 
 
 /*----- bootloader -----*/

[-- Attachment #3: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH] libxl: build fix
@ 2011-01-11 14:54 Christoph Egger
  2011-01-11 18:44 ` Ian Jackson
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Egger @ 2011-01-11 14:54 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 435 bytes --]


Hi!

Attached patch fixes libxl build error:

libxl_dm.c:713: warning: implicit declaration of function 'kill'

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl_build.diff --]
[-- Type: text/x-diff, Size: 332 bytes --]

diff -r 2007ca4414ab tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c	Tue Jan 11 15:34:30 2011 +0100
+++ b/tools/libxl/libxl_dm.c	Tue Jan 11 15:52:52 2011 +0100
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <signal.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include "libxl_utils.h"

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH] libxl: build fix
@ 2010-04-13 10:16 Christoph Egger
  2010-04-13 11:21 ` Ian Jackson
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Egger @ 2010-04-13 10:16 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]


Hi!

Attached patch makes libxl compile on NetBSD.
<sys/signal.h> is needed to get definition for SIGPIPE and SIG_IGN.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_libxl.diff --]
[-- Type: text/x-diff, Size: 330 bytes --]

diff -r 2a4970daad74 tools/libxl/xl.c
--- a/tools/libxl/xl.c	Tue Apr 13 09:38:54 2010 +0100
+++ b/tools/libxl/xl.c	Tue Apr 13 11:55:30 2010 +0200
@@ -26,6 +26,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <sys/signal.h>
 #include <sys/socket.h>
 #include <sys/select.h>
 #include <arpa/inet.h>

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [PATCH] libxl: build fix
@ 2009-12-01 14:40 Christoph Egger
  2009-12-04 15:52 ` Ian Jackson
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Egger @ 2009-12-01 14:40 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 402 bytes --]


Hi!

Attached patch makes libxl build on NetBSD.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>

-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

[-- Attachment #2: xen_tools_libxl.diff --]
[-- Type: text/x-diff, Size: 346 bytes --]

diff -r 030589859a8f tools/libxl/libxl_exec.c
--- a/tools/libxl/libxl_exec.c	Tue Dec 01 15:14:29 2009 +0100
+++ b/tools/libxl/libxl_exec.c	Tue Dec 01 15:40:57 2009 +0100
@@ -25,6 +25,7 @@
 #include <assert.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <signal.h> /* for SIGKILL */
 
 #include "libxl.h"
 #include "libxl_internal.h"

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-05-17 13:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 15:51 [PATCH] libxl: build fix Christoph Egger
2012-05-17 11:41 ` Roger Pau Monne
2012-05-17 11:44 ` Ian Campbell
2012-05-17 13:47 ` Ian Campbell
  -- strict thread matches above, loose matches on Subject: below --
2011-01-11 14:54 Christoph Egger
2011-01-11 18:44 ` Ian Jackson
2010-04-13 10:16 Christoph Egger
2010-04-13 11:21 ` Ian Jackson
2010-04-13 11:49   ` Christoph Egger
2010-04-13 15:04     ` Ian Jackson
2010-04-14  7:19       ` Christoph Egger
2009-12-01 14:40 Christoph Egger
2009-12-04 15:52 ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.