stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Black <abl...@roguewave.com>
Subject [patch] exec utility bugfix
Date Fri, 18 Aug 2006 17:13:24 GMT
Greetings all.

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

--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