Re: [PATCH] conditionalise parts from blkid/topology for Linux

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

 



On Tue, Jan 25, 2011 at 10:11:14PM +0100, Fabian Groffen wrote:
> Only build ioctl, md, and evms on Linux hosts, where they make sense.
> ioctl also fails to build on non-Linux due to missing constants.
> 
> Signed-off-by: Fabian Groffen <grobian@xxxxxxxxxx>
> 
> diff --git a/configure.ac b/configure.ac
> --- a/configure.ac
> +++ b/configure.ac
> @@ -93,6 +93,7 @@
>  case ${host_os} in
>    *linux*)
>      linux_os=yes
> +    AC_DEFINE([LINUX], 1, [Define if platform is Linux])

 I don't think so ...

> diff --git a/shlibs/blkid/src/topology/topology.c b/shlibs/blkid/src/topology/topology.c
> --- a/shlibs/blkid/src/topology/topology.c
> +++ b/shlibs/blkid/src/topology/topology.c
> @@ -74,12 +74,19 @@
>   */
>  static const struct blkid_idinfo *idinfos[] =
>  {
> +#ifdef LINUX

 ... #ifdef __linux__ is your friend :-)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux