[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] blktap/fs-back: Build fixes for Fedora 13



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273143802 -3600
# Node ID 0e7d86aa33754fa34e501dea6c0636258023fb34
# Parent  269e0c52dc3f283a6d716bcb89314ef1853f39af
blktap/fs-back: Build fixes for Fedora 13

1. Some files use stat, mkfifo, mkdir etc. without including
sys/stat.h

2. Some programs link against libpthread without a -lpthread compile
option. The compile used to work if this library happened to be used
by one of the other libraries that was being linked against, but
Fedora 13 has stopped allowing this.

From: M A Young <m.a.young@xxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
xen-unstable changeset:   21036:c1f272c3a441
xen-unstable date:        Mon Mar 15 17:08:29 2010 +0000
---
 tools/blktap/drivers/blktapctrl.c  |    1 +
 tools/blktap/drivers/block-qcow2.c |    1 +
 tools/fs-back/Makefile             |    2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff -r 269e0c52dc3f -r 0e7d86aa3375 tools/blktap/drivers/blktapctrl.c
--- a/tools/blktap/drivers/blktapctrl.c Thu May 06 12:01:39 2010 +0100
+++ b/tools/blktap/drivers/blktapctrl.c Thu May 06 12:03:22 2010 +0100
@@ -50,6 +50,7 @@
 #include <xs.h>
 #include <sys/time.h>
 #include <syslog.h>
+#include <sys/stat.h>
                                                                      
 #include "blktaplib.h"
 #include "blktapctrl.h"
diff -r 269e0c52dc3f -r 0e7d86aa3375 tools/blktap/drivers/block-qcow2.c
--- a/tools/blktap/drivers/block-qcow2.c        Thu May 06 12:01:39 2010 +0100
+++ b/tools/blktap/drivers/block-qcow2.c        Thu May 06 12:03:22 2010 +0100
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #include "tapdisk.h"
 #include "tapaio.h"
diff -r 269e0c52dc3f -r 0e7d86aa3375 tools/fs-back/Makefile
--- a/tools/fs-back/Makefile    Thu May 06 12:01:39 2010 +0100
+++ b/tools/fs-back/Makefile    Thu May 06 12:03:22 2010 +0100
@@ -16,7 +16,7 @@ LIBS      := -L. -L.. -L../lib
 LIBS      := -L. -L.. -L../lib
 LIBS      += $(LDFLAGS_libxenctrl)
 LIBS      += $(LDFLAGS_libxenstore)
-LIBS      += -lrt 
+LIBS      += -lrt -lpthread
 
 OBJS     := fs-xenbus.o fs-ops.o
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.