X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fpread.h;h=0e64326af5e497511e84f0e0f6f442419bfb7aa7;hb=3b75e19aae5e7d9da0754134aaad211cdf8f60d2;hp=46370780588cca73b1853b7874f36b90cd427660;hpb=11f7b31bba25a7cdabb3cd64d3c6ba89975a2695;p=pciutils.git diff --git a/lib/pread.h b/lib/pread.h index 4637078..0e64326 100644 --- a/lib/pread.h +++ b/lib/pread.h @@ -37,7 +37,7 @@ static _syscall5(int, pread, unsigned int, fd, void *, buf, size_t, size, u32, w static _syscall5(int, pwrite, unsigned int, fd, void *, buf, size_t, size, u32, where_lo, u32, where_hi); static int do_read(struct pci_dev *d UNUSED, int fd, void *buf, size_t size, int where) { return pread(fd, buf, size, where, 0); } static int do_write(struct pci_dev *d UNUSED, int fd, void *buf, size_t size, int where) { return pwrite(fd, buf, size, where, 0); } -#define HAVE_DO_READ +#define PCI_HAVE_DO_READ #else /* In all other cases we use lseek/read/write instead to be safe */ @@ -57,10 +57,10 @@ static int do_write(struct pci_dev *d UNUSED, int fd, void *buf, size_t size, in } make_rw_glue(read) make_rw_glue(write) -#define HAVE_DO_READ +#define PCI_HAVE_DO_READ #endif -#ifndef HAVE_DO_READ +#ifndef PCI_HAVE_DO_READ #define do_read(d,f,b,l,p) pread(f,b,l,p) #define do_write(d,f,b,l,p) pwrite(f,b,l,p) #endif