All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/3] lib: errnos: use ERFKILL only if it's defined
@ 2014-01-07 13:46 Jan Stancek
  2014-01-07 13:46 ` [LTP] [PATCH 2/3] cpuset/cpuset_syscall_test: check HAVE_DECL_MPOL_F_MEMS_ALLOWED Jan Stancek
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jan Stancek @ 2014-01-07 13:46 UTC (permalink / raw)
  To: ltp-list

This is to fix compilation on RHEL5.3:
  In file included from tst_res.c:216:
  errnos.h: In function ‘strerrnodef’:
  errnos.h:164: error: ‘ERFKILL’ undeclared (first use in this function)
  errnos.h:164: error: (Each undeclared identifier is reported only once
  errnos.h:164: error: for each function it appears in.)
  errnos.h:164: error: array index in initializer not of integer type
  errnos.h:164: error: (near initialization for ‘errno_pairs’)
  make[1]: *** [tst_res.o] Error 1

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 lib/errnos.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/errnos.h b/lib/errnos.h
index 797aed4..ee9620b 100644
--- a/lib/errnos.h
+++ b/lib/errnos.h
@@ -161,7 +161,9 @@ static const char *strerrnodef(int err)
 		PAIR(EKEYREJECTED)
 		PAIR(EOWNERDEAD)
 		PAIR(ENOTRECOVERABLE)
+#ifdef ERFKILL
 		PAIR(ERFKILL)
+#endif
 #ifdef EHWPOISON
 		PAIR(EHWPOISON)
 #endif
-- 
1.7.1


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

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

end of thread, other threads:[~2014-10-15 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-07 13:46 [LTP] [PATCH 1/3] lib: errnos: use ERFKILL only if it's defined Jan Stancek
2014-01-07 13:46 ` [LTP] [PATCH 2/3] cpuset/cpuset_syscall_test: check HAVE_DECL_MPOL_F_MEMS_ALLOWED Jan Stancek
2014-01-09 18:48   ` chrubis
2014-08-18  7:00   ` Shuang Qiu
2014-08-18  7:49     ` Jan Stancek
2014-10-15 12:16       ` Cyril Hrubis
2014-01-07 13:46 ` [LTP] [PATCH 3/3] syscalls/dup3_02: define O_CLOEXEC if needed Jan Stancek
2014-01-08 13:00 ` [LTP] [PATCH 1/3] lib: errnos: use ERFKILL only if it's defined chrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.