Skip to content
  • Ben Gamari's avatar
    rts: Only declare environ when necessary · e4ee9d30
    Ben Gamari authored and Zubin's avatar Zubin 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 ec8220b3)
    e4ee9d30