]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
blktap/fs-back: Build fixes for Fedora 13
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 6 May 2010 11:03:22 +0000 (12:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 6 May 2010 11:03:22 +0000 (12:03 +0100)
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@durham.ac.uk>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen-unstable changeset:   21036:c1f272c3a441
xen-unstable date:        Mon Mar 15 17:08:29 2010 +0000

tools/blktap/drivers/blktapctrl.c
tools/blktap/drivers/block-qcow2.c
tools/fs-back/Makefile

index 21cdfe5239e4bfda549e510fac9805d52a7d76f9..5ac1e76dd70fadb1816b61a7a24b2fc05c528c35 100644 (file)
@@ -50,6 +50,7 @@
 #include <xs.h>
 #include <sys/time.h>
 #include <syslog.h>
+#include <sys/stat.h>
                                                                      
 #include "blktaplib.h"
 #include "blktapctrl.h"
index b0392e1802d8504bed7e361ca54fcd5975bb5780..ceda4f012488109d1011d37beccfafe8ac4aea7f 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #include "tapdisk.h"
 #include "tapaio.h"
index db6ce6f9cf49aa4ef543b0d29ce7492b5f243172..3d0ea81a251e84464f3921a799e73b7dd8059503 100644 (file)
@@ -16,7 +16,7 @@ CFLAGS   += -D_GNU_SOURCE
 LIBS      := -L. -L.. -L../lib
 LIBS      += $(LDFLAGS_libxenctrl)
 LIBS      += $(LDFLAGS_libxenstore)
-LIBS      += -lrt 
+LIBS      += -lrt -lpthread
 
 OBJS     := fs-xenbus.o fs-ops.o