Skip to content
  • Ben Gamari's avatar
    d5516145
    rts: Only declare environ when necessary · d5516145
    Ben Gamari authored and Matthew Pickering's avatar Matthew Pickering committed
    Previously we would unconditionally provide a declaration for `environ`,
    even if `<unistd.h>` already provided one. This would result in
    `-Werror` builds failing on some platforms.
    
    Also `#include <unistd.h>` to ensure that the declaration is visible.
    
    Fixes #20861.
    
    (cherry picked from commit 247cd336)
    d5516145
    rts: Only declare environ when necessary
    Ben Gamari authored and Matthew Pickering's avatar Matthew Pickering committed
    Previously we would unconditionally provide a declaration for `environ`,
    even if `<unistd.h>` already provided one. This would result in
    `-Werror` builds failing on some platforms.
    
    Also `#include <unistd.h>` to ensure that the declaration is visible.
    
    Fixes #20861.
    
    (cherry picked from commit 247cd336)
Loading