noinst_LTLIBRARIES = libcompat.la
-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
+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