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