ソースを参照

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[])
 main(int argc, char *argv[])
 {
 {
 	const char *options[] = {
 	const char *options[] = {
+#if !defined(NO_FILES)
 	    "document_root",
 	    "document_root",
 	    DOCUMENT_ROOT,
 	    DOCUMENT_ROOT,
+#endif
 	    "listening_ports",
 	    "listening_ports",
 	    PORT,
 	    PORT,
 	    "request_timeout_ms",
 	    "request_timeout_ms",