BorisSchaeling / boost-process

Boost.Process is a library to manage system processes
Boost Software License 1.0
32 stars 20 forks source link

Solaris compilation #5

Open dlaugt opened 9 years ago

dlaugt commented 9 years ago

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.