forked from auracaster/openocd
remove #if BUILD_HTTPD
Add httpd_stubs.c to provide no-op implementations of httpd_start() and httpd_stop(). Allows these routines to be called unconditionally and ensures the libocdserver ABI remains unchanged regardless of whether this feature was built-in or not. Prints a DEBUG message when the stub implementation is included.
This commit is contained in:
@@ -14,6 +14,7 @@ libserver_la_SOURCES = server.c telnet_server.c gdb_server.c
|
||||
if HTTPD
|
||||
libserver_la_SOURCES += httpd.c
|
||||
else
|
||||
libserver_la_SOURCES += httpd_stubs.c
|
||||
if !ECOSBOARD
|
||||
libserver_la_SOURCES += server_stubs.c
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user