Ticket #13199: boost_process_execvpe.patch

File boost_process_execvpe.patch, 651 bytes (added by slobodyanukma@…, 5 years ago)

Patch

  • executor.

    old new  
    2222#include <errno.h>
    2323#include <unistd.h>
    2424
    25 #if !defined(__GLIBC__)
     25#if !(__GLIBC__ >=2 && __GLIBC_MINOR__ >= 11)
    2626#include <boost/algorithm/string/predicate.hpp>
    2727#include <boost/algorithm/string/split.hpp>
    2828#include <boost/algorithm/string/classification.hpp>
     
    3232
    3333inline int execvpe(const char* filename, char * const arg_list[], char* env[])
    3434{
    35 #if defined(__GLIBC__)
     35#if __GLIBC__ >=2 && __GLIBC_MINOR__ >= 11
    3636    return ::execvpe(filename, arg_list, env);
    3737#else
    3838    //use my own implementation