-AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
+# 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 dirent.h \
- socket.h compat-fcntl.c uuid.h tid.h \
- getenv.h string.h prctl.h paths.h netdb.h $(COMPAT) \
- time.h
+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