boost-process icon indicating copy to clipboard operation
boost-process copied to clipboard

Solaris compilation

Open dlaugt opened this issue 9 years ago • 0 comments

Hi,

To compile with Solaris, the following patch would be needed:

Index: boost/process/posix/initializers/inherit_env.hpp
===================================================================
--- boost/process/posix/initializers/inherit_env.hpp       (revision 262831)
+++ boost/process/posix/initializers/inherit_env.hpp    (working copy)
@@ -17,6 +17,10 @@
#   define environ (*_NSGetEnviron())
#else
#   include <unistd.h>
+extern "C"
+{
+    extern char **environ;
+}
#endif
 namespace boost { namespace process { namespace posix { namespace initializers {

Regards, Daniel.

dlaugt avatar Jul 20 '15 11:07 dlaugt