Skip to content

Solaris compilation #5

@dlaugt

Description

@dlaugt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions