Skip to content

Commit 5431a96

Browse files
committed
Explain how http_parser is obtained and patched
1 parent 80cd9ba commit 5431a96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ all: http_parser.c
99
clean:
1010
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
1111

12+
# Download http_parser.[ch] from nodejs/http-parser repository
13+
# the inclusion of standard header files such as <string.h> will be replaced
14+
# with "compat/string.h", which is just a wrapper to Linux kernel headers.
15+
# TODO: rewrite with elegant scripts
1216
http_parser.c:
1317
wget -q https://raw.githubusercontent.com/nodejs/http-parser/master/http_parser.c
1418
@sed -i 's/#include <assert.h>/#include "compat\/assert.h"/' $@

0 commit comments

Comments
 (0)