All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] Declare lio_async_callback_handler() for linux too
@ 2016-01-07  7:37 Khem Raj
  2016-01-07  9:16 ` Jan Stancek
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-01-07  7:37 UTC (permalink / raw)
  To: ltp

sigval_t is glibc only construct, we use a union of sigval
which pretty much is same effect as sigval_t

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 lib/tlibio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/tlibio.c b/lib/tlibio.c
index 6b6103f..b7d9faa 100644
--- a/lib/tlibio.c
+++ b/lib/tlibio.c
@@ -130,7 +130,7 @@
 #endif
 
 static void lio_async_signal_handler();
-#ifdef sgi
+#if defined(sgi) || (defined(__linux__) && !defined(__UCLIBC__))
 static void lio_async_callback_handler();
 #endif
 
@@ -441,7 +441,7 @@ static void lio_async_signal_handler(int sig)
  * If the handler is called, it will increment the Received_callback
  * global variable.
  ***********************************************************************/
-static void lio_async_callback_handler(sigval_t sigval)
+static void lio_async_callback_handler(union sigval sigval)
 {
 	if (Debug_level)
 		printf
-- 
2.7.0


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

end of thread, other threads:[~2016-01-07 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07  7:37 [LTP] [PATCH] Declare lio_async_callback_handler() for linux too Khem Raj
2016-01-07  9:16 ` Jan Stancek
2016-01-07  9:58   ` Khem Raj
2016-01-07 11:08     ` Jan Stancek
2016-01-07 11:28       ` Khem Raj
2016-01-07 12:22       ` Khem Raj

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.