OSDN Git Service

Avoid compilation failure on s390
authorOtavio Salvador <otavio@ossystems.com.br>
Sun, 19 Jul 2009 12:03:59 +0000 (09:03 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Sun, 19 Jul 2009 14:59:07 +0000 (11:59 -0300)
commit6b96e557531db279d30cd3d592f3ce46eba24b5b
treeb139a579d3745686fc3404b8f371d3b7afd76256
parentaef3939a693b3ccc046324c3bf806cc64feda7c7
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.
configure.ac
libparted/Makefile.am
libparted/arch/linux.c
libparted/arch/linux.h [new file with mode: 0644]
libparted/labels/Makefile.am
libparted/labels/dasd.c
libparted/labels/fdasd.c