summaryrefslogtreecommitdiff
path: root/libparted/labels/fdasd.c
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-07-19 09:03:59 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2009-07-19 11:59:07 -0300
commit6b96e557531db279d30cd3d592f3ce46eba24b5b (patch)
treeb139a579d3745686fc3404b8f371d3b7afd76256 /libparted/labels/fdasd.c
parentaef3939a693b3ccc046324c3bf806cc64feda7c7 (diff)
downloadparted-6b96e557531db279d30cd3d592f3ce46eba24b5b.tar.gz
Avoid compilation failure on s390
To export LinuxSpecific stuff for labels, in this case fdasd, we now provide arch/linux.h. This aids in avoiding code duplication. * configure.ac: add BUILD_LINUX conditional. * libparted/Makefile.am: conditionally use linux.h. * libparted/arch/linux.c: move LinuxSpecific stuff to linux.h. * libparted/arch/linux.h: New file. * libparted/labels/Makefile.am: include from libparted as well. * libparted/labels/dasd.c: use arch/linux.h and use dev->path for error message. * libparted/labels/fdasd.c: include linux.h and drop an unused variable.
Diffstat (limited to 'libparted/labels/fdasd.c')
-rw-r--r--libparted/labels/fdasd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c
index 40ba8c9..0311bdc 100644
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -17,6 +17,7 @@
*/
#include <config.h>
+#include <arch/linux.h>
#include <parted/vtoc.h>
#include <parted/fdasd.h>
@@ -773,7 +774,6 @@ fdasd_get_geometry (fdasd_anchor_t *anc, int f)
PDEBUG
int blksize = 0;
dasd_information_t dasd_info;
- char s[LINE_LENGTH];
if (ioctl(f, HDIO_GETGEO, &anc->geo) != 0)
fdasd_error(anc, unable_to_ioctl,