--- src/mips/getcontext.S.orig
+++ src/mips/getcontext.S
@@ -24,7 +24,7 @@
 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
 #include "offsets.h"
-#include <endian.h>
+#include <bits/endian.h>
 
 	.text
 
