http.c: fix compile error in darwin