summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2020-05-02 02:26:23 +0000
committermidipix <writeonce@midipix.org>2020-05-02 02:26:23 +0000
commit60ac665d74285cfacfe4795f9e45a2dd0564e9e1 (patch)
treeb4920460630ba8b7cab60b4947e047f76d0881ae
parent5ea34cb56684081537ee33b2b786d332c91764f4 (diff)
downloadmmglue-60ac665d74285cfacfe4795f9e45a2dd0564e9e1.tar.bz2
mmglue-60ac665d74285cfacfe4795f9e45a2dd0564e9e1.tar.xz
midipix targets: remove epoll support.
-rw-r--r--project/headers.mk7
-rw-r--r--project/os/midipix.mk2
-rw-r--r--src/linux/nt32/epoll.c1
-rw-r--r--src/linux/nt64/epoll.c1
4 files changed, 9 insertions, 2 deletions
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;