From 3cf824f18ccc168d8a13fc25e5fb7427a520eb32 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 7 Sep 2004 07:57:35 +0000 Subject: [PATCH] Fixed BLKGETSIZE IRIX compile error Moved getdevicesize to Linux only target --- src/Makefile | 4 ++-- src/getdevicesize.c | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index f2aa548f..25b17166 100644 --- a/src/Makefile +++ b/src/Makefile @@ -37,9 +37,9 @@ TARGETS = dirstress fill fill2 getpagesize holes lstat64 \ nametest permname randholes runas truncfile usemem \ mmapcat append_reader append_writer dirperf metaperf \ devzero feature alloc fault fstest t_access_root \ - godown resvtest writemod getdevicesize + godown resvtest writemod -LINUX_TARGETS = loggen xfsctl bstat t_mtab +LINUX_TARGETS = loggen xfsctl bstat t_mtab getdevicesize ifeq ($(PKG_PLATFORM),linux) TARGETS += $(LINUX_TARGETS) diff --git a/src/getdevicesize.c b/src/getdevicesize.c index 58740239..70d98f74 100644 --- a/src/getdevicesize.c +++ b/src/getdevicesize.c @@ -44,9 +44,6 @@ #ifndef BLKGETSIZE64 # define BLKGETSIZE64 _IOR(0x12,114,size_t) #endif -#ifndef BLKSSZGET -# define BLKSSZGET _IO(0x12,104) -#endif int main(int argc, char **argv) { -- 2.47.3