diff options
author | Carmelo AMOROSO <carmelo.amoroso@st.com> | 2010-12-13 08:48:28 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2010-12-14 00:14:33 +0000 |
commit | b9c525790c158404c96ce8508e42a9217d1760d3 (patch) | |
tree | c8cb980dbffd935b9980ad0b88757f08405908ef | |
parent | 696381ec63ec200c5211643e4a4324d58b3031c4 (diff) | |
download | strace-b9c525790c158404c96ce8508e42a9217d1760d3.tar.gz |
sh: Fix compilation warning in do_pipe due to missing prototype
* defs.h [SH]: Make getrval2 prototype visible to do_pipe
and fix the following compiler warning:
.../net.c: In function 'do_pipe':
.../net.c:1632: warning: implicit declaration of function 'getrval2'
.../net.c:1632: warning: format '%lu' expects type 'long unsigned int',
but argument 3 has type 'int'
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
-rw-r--r-- | defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -601,7 +601,8 @@ extern void tv_div(struct timeval *, struct timeval *, int); #ifdef SUNOS4 extern int fixvfork(struct tcb *); #endif -#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64)) +#if !(defined(LINUX) && !defined(SPARC) && !defined(SPARC64) && !defined(IA64) \ + && !defined(SH)) extern long getrval2(struct tcb *); #endif #ifdef USE_PROCFS |