Author: sebor
Date: Mon Sep 25 16:21:46 2006
New Revision: 449855
URL: http://svn.apache.org/viewvc?view=rev&rev=449855
Log:
2006-09-25 Martin Sebor <[EMAIL PROTECTED]>
* exec.cpp (wait_for_child): Worked around HP aCC bug (STDCXX-291)
even harder (and more correctly).
Modified:
incubator/stdcxx/trunk/util/exec.cpp
Modified: incubator/stdcxx/trunk/util/exec.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/exec.cpp?view=diff&rev=449855&r1=449854&r2=449855
==============================================================================
--- incubator/stdcxx/trunk/util/exec.cpp (original)
+++ incubator/stdcxx/trunk/util/exec.cpp Mon Sep 25 16:21:46 2006
@@ -439,7 +439,8 @@
/* avoid extern "C"/"C++" mismatch due to an HP aCC 6 bug
(see STDCXX-291)
*/
- memcpy (act.sa_handler, handle_alrm, sizeof act.sa_handler);
+ void (*phandler)(int) = handle_alrm;
+ memcpy (&act.sa_handler, &phandler, sizeof act.sa_handler);
sigaction (SIGALRM, &act, 0);