소스 검색

Don't specify document_root in embedded_c if NO_FILES

It makes sense to compile the sample with NO_FILES, and in that case it
does not make sense to force the option.
Tomasz Gorochowik 6 년 전
부모
커밋
e371e61e55
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/embedded_c/embedded_c.c

+ 2 - 0
examples/embedded_c/embedded_c.c

@@ -956,8 +956,10 @@ int
 main(int argc, char *argv[])
 {
 	const char *options[] = {
+#if !defined(NO_FILES)
 	    "document_root",
 	    DOCUMENT_ROOT,
+#endif
 	    "listening_ports",
 	    PORT,
 	    "request_timeout_ms",