[lvm-devel] LVM2 ./configure ./configure.in tools/lvm-static.c

Alasdair G Kergon agk at redhat.com
Tue Jan 20 17:53:46 UTC 2009


On Tue, Jan 20, 2009 at 05:07:54PM -0000, mbroz at sourceware.org wrote:
> 	Fix problems with static build
> 	- compiler warning (missing header)
 	
> +++ LVM2/tools/lvm-static.c	2009/01/20 17:07:53	1.7
> @@ -14,6 +14,7 @@
>   */
>  
>  #include "lvm2cmdline.h"
> +#include "lib.h"

Two problems here:

  Firsly, lib.h is only for library code - tools use tools.h.

  Secondly, this file must be the first to be included because
it is setting options that might change how files included later
behave.

Alasdair
-- 
agk at redhat.com




More information about the lvm-devel mailing list