-AM_CPPFLAGS = -I$(top_srcdir)/include
+# SPDX-License-Identifier: GPL-2.0-only
noinst_LTLIBRARIES = libcompat.la
-if COMPAT_EPOLL
-COMPAT=compat-epoll.c
-else
-COMPAT=compat-poll.c
-endif
-
-libcompat_la_SOURCES = poll.h fcntl.h endian.h mman.h clone.h \
- socket.h compat-fcntl.c $(COMPAT)
+libcompat_la_SOURCES = \
+ compat-fcntl.cpp \
+ directory-handle.cpp \
+ directory-handle.h \
+ dirent.h \
+ endian.h \
+ errno.h \
+ fcntl.h \
+ getenv.h \
+ mman.h \
+ netdb.h \
+ path.h \
+ paths.h \
+ poll.cpp \
+ poll.h \
+ pthread.h \
+ socket.h \
+ string.h \
+ tid.h \
+ time.h