public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] filecaps: Fix build.
@ 2012-06-12  1:27 Vinson Lee
  2012-06-12  8:25 ` Wanlong Gao
  0 siblings, 1 reply; 2+ messages in thread
From: Vinson Lee @ 2012-06-12  1:27 UTC (permalink / raw)
  To: ltp-list

Fix build error that was introduced at commit
66ad27e08d774c572e99e97cc9b885295ec0aa55.

gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
-I/tmp/ltp/testcases/kernel/include -D_GNU_SOURCE -I../../../../include
-I../../../../include -L../../../../lib c.c -lltp -o c c.c:22:28: fatal
error: sys/capability.h: No such file or directory

Signed-off-by: Vinson Lee <vlee@twitter.com>
---
 testcases/kernel/security/filecaps/c.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/security/filecaps/c.c b/testcases/kernel/security/filecaps/c.c
index 38c1516..fbd0365 100644
--- a/testcases/kernel/security/filecaps/c.c
+++ b/testcases/kernel/security/filecaps/c.c
@@ -19,7 +19,9 @@
 /******************************************************************************/
 
 #include <stdio.h>
+#if HAVE_SYS_CAPABILITY_H
 #include <sys/capability.h>
+#endif
 
 int main()
 {
-- 
1.7.9.5


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] filecaps: Fix build.
  2012-06-12  1:27 [LTP] [PATCH] filecaps: Fix build Vinson Lee
@ 2012-06-12  8:25 ` Wanlong Gao
  0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2012-06-12  8:25 UTC (permalink / raw)
  To: Vinson Lee; +Cc: ltp-list

On 06/12/2012 09:27 AM, Vinson Lee wrote:
> Fix build error that was introduced at commit
> 66ad27e08d774c572e99e97cc9b885295ec0aa55.
> 
> gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall
> -I/tmp/ltp/testcases/kernel/include -D_GNU_SOURCE -I../../../../include
> -I../../../../include -L../../../../lib c.c -lltp -o c c.c:22:28: fatal
> error: sys/capability.h: No such file or directory
> 
> Signed-off-by: Vinson Lee <vlee@twitter.com>

pushed, thanks Vinson.

Wanlong Gao

> ---
>  testcases/kernel/security/filecaps/c.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/testcases/kernel/security/filecaps/c.c b/testcases/kernel/security/filecaps/c.c
> index 38c1516..fbd0365 100644
> --- a/testcases/kernel/security/filecaps/c.c
> +++ b/testcases/kernel/security/filecaps/c.c
> @@ -19,7 +19,9 @@
>  /******************************************************************************/
>  
>  #include <stdio.h>
> +#if HAVE_SYS_CAPABILITY_H
>  #include <sys/capability.h>
> +#endif
>  
>  int main()
>  {
> 



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-12  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12  1:27 [LTP] [PATCH] filecaps: Fix build Vinson Lee
2012-06-12  8:25 ` Wanlong Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox