为什么你的源代码不用注释To compile for Linux中的内容也可以编译
Closed this issue · 0 comments
greedyhao commented
你好,我是一个初学者,我有个疑惑:为什么httpd.c开头说的需要注释的内容你不注释也可以过编译,而我看到
EZLippi的Tinyhttpd不注释这些内容无法过编译?
/* This program compiles for Sparc Solaris 2.6.
* To compile for Linux:
* 1) Comment out the #include <pthread.h> line.
* 2) Comment out the line that defines the variable newthread.
* 3) Comment out the two lines that run pthread_create().
* 4) Uncomment the line that runs accept_request().
* 5) Remove -lsocket from the Makefile.
*/