Add CI for FreeBSD and fix compiling errors. (#1755)

This commit is contained in:
xiehan
2025-07-17 23:38:20 +08:00
committed by GitHub
parent 8586413a3e
commit 81b20dfd90
12 changed files with 49 additions and 27 deletions
+3 -4
View File
@@ -11,18 +11,17 @@ CMAKE3 := $(shell if which cmake3>/dev/null ; then echo cmake3; else echo cmake;
all:
mkdir -p $(BUILD_DIR)
rm -rf $(DEFAULT_BUILD_DIR)/CMakeCache.txt
ifeq ($(DEBUG),y)
cd $(BUILD_DIR) && $(CMAKE3) -D CMAKE_BUILD_TYPE=Debug -D CONSUL=$(CONSUL) -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) $(ROOT_DIR)
else
cd $(BUILD_DIR) && $(CMAKE3) -D CONSUL=$(CONSUL) -D KAFKA=$(KAFKA) -D MYSQL=$(MYSQL) -D REDIS=$(REDIS) $(ROOT_DIR)
endif
make -C $(BUILD_DIR) -f Makefile
$(MAKE) -C $(BUILD_DIR) -f Makefile
clean:
ifeq ($(MAKE_FILE), $(wildcard $(MAKE_FILE)))
-make -f Makefile clean
-$(MAKE) -f Makefile clean
else ifeq ($(DEFAULT_BUILD_DIR), $(wildcard $(DEFAULT_BUILD_DIR)))
-make -C $(DEFAULT_BUILD_DIR) clean
-$(MAKE) -C $(DEFAULT_BUILD_DIR) clean
endif
rm -rf $(DEFAULT_BUILD_DIR)
@@ -5,6 +5,8 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <signal.h>
+2 -1
View File
@@ -1,7 +1,8 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>
#include <stdio.h>
#include <signal.h>
#include <arpa/inet.h>
#include "workflow/WFDnsServer.h"
#include "workflow/WFFacilities.h"