From 60ac665d74285cfacfe4795f9e45a2dd0564e9e1 Mon Sep 17 00:00:00 2001 From: midipix Date: May 02 2020 02:26:23 +0000 Subject: midipix targets: remove epoll support. --- diff --git a/project/headers.mk b/project/headers.mk index 65ae80b..20054d5 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -1,3 +1,5 @@ +-include $(PROJECT_DIR)/project/os/$(OS).mk + # build/version.h build/version.h:$(wildcard $(SOURCE_DIR)/VERSION $(SOURCE_DIR)/.git/index) dirs.tag printf '#define VERSION "%s"\n' \ @@ -65,8 +67,9 @@ dst_bits_h += $(src_bits_h:build/include/%=$(DESTDIR)$(INCLUDEDIR)/%) src_header_dirs = $(filter %/,$(wildcard $(SOURCE_DIR)/include/*/)) dst_header_dirs = $(src_header_dirs:$(SOURCE_DIR)/include/%=$(DESTDIR)$(INCLUDEDIR)/%) -src_c_headers = $(sort $(wildcard $(SOURCE_DIR)/include/*.h)) -src_c_headers += $(sort $(wildcard $(SOURCE_DIR)/include/*/*.h)) +src_c_headers_ = $(sort $(wildcard $(SOURCE_DIR)/include/*.h)) +src_c_headers_ += $(sort $(wildcard $(SOURCE_DIR)/include/*/*.h)) +src_c_headers = $(filter-out $(OS_EXCLUDE_LIBC_HEADERS), $(src_c_headers_)) dst_c_headers = $(subst $(SOURCE_DIR)/include/, \ $(DESTDIR)$(INCLUDEDIR)/, \ diff --git a/project/os/midipix.mk b/project/os/midipix.mk new file mode 100644 index 0000000..efeec05 --- /dev/null +++ b/project/os/midipix.mk @@ -0,0 +1,2 @@ +OS_EXCLUDE_LIBC_HEADERS = \ + $(SOURCE_DIR)/include/sys/epoll.h \ diff --git a/src/linux/nt32/epoll.c b/src/linux/nt32/epoll.c new file mode 100644 index 0000000..84b166d --- /dev/null +++ b/src/linux/nt32/epoll.c @@ -0,0 +1 @@ +typedef int epoll_dummy; diff --git a/src/linux/nt64/epoll.c b/src/linux/nt64/epoll.c new file mode 100644 index 0000000..84b166d --- /dev/null +++ b/src/linux/nt64/epoll.c @@ -0,0 +1 @@ +typedef int epoll_dummy;