mirror of
https://github.com/lammertb/libhttp.git
synced 2025-12-22 04:02:04 +03:00
@@ -91,7 +91,7 @@ int main(void)
|
|||||||
|
|
||||||
/* Display a welcome message */
|
/* Display a welcome message */
|
||||||
printf("File upload demo.\n");
|
printf("File upload demo.\n");
|
||||||
printf("Open http://localhost:%s/ im your browser.\n\n", PORT);
|
printf("Open http://localhost:%s/ in your browser.\n\n", PORT);
|
||||||
|
|
||||||
/* Start the server */
|
/* Start the server */
|
||||||
ctx = mg_start(&callbacks, NULL, options);
|
ctx = mg_start(&callbacks, NULL, options);
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ LIBS = -lpthread
|
|||||||
include $(TOP)/resources/Makefile.in-os
|
include $(TOP)/resources/Makefile.in-os
|
||||||
|
|
||||||
ifeq ($(TARGET_OS),LINUX)
|
ifeq ($(TARGET_OS),LINUX)
|
||||||
LIBS += -ldl
|
LIBS += -ldl -DMG_LEGACY_INTERFACE=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: $(PROG)
|
all: $(PROG)
|
||||||
|
|||||||
Reference in New Issue
Block a user