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

[Xen-devel] lib/blktaplib.h:199:0:âerror:â"WRITE"âredefined


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Wed, 12 Jan 2011 19:40:52 +0100
  • Delivery-date: Wed, 12 Jan 2011 10:41:57 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hello,

today I tried to build xen-unstable against the upcoming openSuSE 11.4.
It failed with this error:

cc1: warnings being treated as errors
In file included from tapdisk.h:62:0,
                 from blk_linux.c:4:
../lib/blktaplib.h:199:0: error: "WRITE" redefined
/usr/include/linux/fs.h:150:0: note: this is the location of the previous 
definition
make[5]: *** [blk_linux.o] Error 1

I see WRITE and READ defined in two places, perhaps another header already has
suitable defines for the fds[] array access.

./tools/blktap/lib/blktaplib.h:199:#define WRITE 1
./tools/blktap2/include/blktaplib.h:193:#define WRITE 1

Olaf


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


 


Rackspace

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