incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: [patch] exec utility bugfix
Date Fri, 18 Aug 2006 18:22:37 GMT
Andrew Black wrote:
> Greetings all.

Greetings Andrew!

> 
> Below is a quick patch and changelog to fix a compile failure in the 
> exec utility with the compaq compiler.

Applied thus: http://svn.apache.org/viewvc?rev=432669&view=rev

Martin

PS For some reason I've been having trouble applying your patches,
including this one, on Solaris. I don't see anything wrong with it
but my first attempt failed and the second one failed to apply
correctly.

> 
> --Andrew Black
> 
> Log:
>     * cmdopt.cpp [!_WIN32 && !_WIN64] (rw_sleep): declare function 
> 'extern "C"' if __cplusplus is defined.
> 
> Index: cmdopt.cpp
> ===================================================================
> --- cmdopt.cpp  (revision 432634)
> +++ cmdopt.cpp  (working copy)
> @@ -106,6 +106,9 @@
>      sleep (seconds);
>  }
> 
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
>  static int
>  rw_signal (int signo, void (*func)(int))
>  {
> @@ -114,6 +117,9 @@
>      act.sa_handler = func;
>      return 0 > sigaction (signo, &act, 0);
>  }
> +#ifdef __cplusplus
> +}
> +#endif
>  #else
>  static void
>  rw_sleep (int seconds)


Mime
View raw message