unikraft / lib-musl

musl: A C standard library
Other
9 stars 29 forks source link

Add patch to fix definition of environ variable #30

Closed razvand closed 1 year ago

razvand commented 1 year ago

The patch properly defines environ as an array of pointers, the last of which is NULL. In the previous definition, environ was NULL, which is not OK. The definition is now replaced to an array of a single NULL element.

Without this path, Nginx will not work with Musl.

I took inspiration from the way environ is (properly) defined in newlibc.