diff options
-rw-r--r-- | src/Log.cxx | 3 | ||||
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 3 | ||||
-rw-r--r-- | src/db/update/InotifySource.cxx | 3 | ||||
-rw-r--r-- | src/db/update/UpdateIO.cxx | 2 | ||||
-rw-r--r-- | src/db/update/Walk.cxx | 2 | ||||
-rw-r--r-- | src/event/MultiSocketMonitor.cxx | 2 | ||||
-rw-r--r-- | src/fs/FileSystem.cxx | 3 | ||||
-rw-r--r-- | src/fs/io/FileOutputStream.cxx | 3 | ||||
-rw-r--r-- | src/lib/xiph/FlacIOHandle.cxx | 3 | ||||
-rw-r--r-- | src/net/Resolver.cxx | 3 | ||||
-rw-r--r-- | src/net/SocketDescriptor.cxx | 3 | ||||
-rw-r--r-- | src/net/SocketError.hxx | 2 | ||||
-rw-r--r-- | src/output/plugins/FifoOutputPlugin.cxx | 3 | ||||
-rw-r--r-- | src/output/plugins/OssOutputPlugin.cxx | 2 | ||||
-rw-r--r-- | src/output/plugins/SolarisOutputPlugin.cxx | 3 | ||||
-rw-r--r-- | src/system/Error.hxx | 3 | ||||
-rw-r--r-- | src/system/FatalError.cxx | 2 | ||||
-rw-r--r-- | test/WriteFile.cxx | 3 |
18 files changed, 29 insertions, 19 deletions
diff --git a/src/Log.cxx b/src/Log.cxx index 686a60fb2..41e4958bc 100644 --- a/src/Log.cxx +++ b/src/Log.cxx @@ -21,9 +21,10 @@ #include "util/Domain.hxx" #include "util/Exception.hxx" +#include <cerrno> + #include <stdio.h> #include <string.h> -#include <errno.h> static constexpr Domain exception_domain("exception"); diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 05fc688a1..57c4ad47e 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -49,10 +49,9 @@ #include "fs/io/GzipOutputStream.hxx" #endif +#include <cerrno> #include <memory> -#include <errno.h> - static constexpr Domain simple_db_domain("simple_db"); inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block) diff --git a/src/db/update/InotifySource.cxx b/src/db/update/InotifySource.cxx index 4ee0d6afc..d36463113 100644 --- a/src/db/update/InotifySource.cxx +++ b/src/db/update/InotifySource.cxx @@ -24,8 +24,9 @@ #include "system/Error.hxx" #include "Log.hxx" +#include <cerrno> + #include <sys/inotify.h> -#include <errno.h> #include <stdint.h> #include <limits.h> diff --git a/src/db/update/UpdateIO.cxx b/src/db/update/UpdateIO.cxx index 5743d9238..c122406c2 100644 --- a/src/db/update/UpdateIO.cxx +++ b/src/db/update/UpdateIO.cxx @@ -26,7 +26,7 @@ #include "fs/AllocatedPath.hxx" #include "Log.hxx" -#include <errno.h> +#include <cerrno> bool GetInfo(Storage &storage, const char *uri_utf8, StorageFileInfo &info) noexcept diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx index 4ebd230da..bdc207825 100644 --- a/src/db/update/Walk.cxx +++ b/src/db/update/Walk.cxx @@ -39,12 +39,12 @@ #include "Log.hxx" #include <cassert> +#include <cerrno> #include <exception> #include <memory> #include <string.h> #include <stdlib.h> -#include <errno.h> UpdateWalk::UpdateWalk(const UpdateConfig &_config, EventLoop &_loop, DatabaseListener &_listener, diff --git a/src/event/MultiSocketMonitor.cxx b/src/event/MultiSocketMonitor.cxx index 4d7fe8f36..24365cfbc 100644 --- a/src/event/MultiSocketMonitor.cxx +++ b/src/event/MultiSocketMonitor.cxx @@ -23,7 +23,7 @@ #include <algorithm> #ifdef USE_EPOLL -#include <errno.h> +#include <cerrno> #endif #ifndef _WIN32 diff --git a/src/fs/FileSystem.cxx b/src/fs/FileSystem.cxx index f5869fcbb..31773aa88 100644 --- a/src/fs/FileSystem.cxx +++ b/src/fs/FileSystem.cxx @@ -22,7 +22,8 @@ #include "Limits.hxx" #include "system/Error.hxx" -#include <errno.h> +#include <cerrno> + #include <fcntl.h> void diff --git a/src/fs/io/FileOutputStream.cxx b/src/fs/io/FileOutputStream.cxx index 83518e177..fb07fe438 100644 --- a/src/fs/io/FileOutputStream.cxx +++ b/src/fs/io/FileOutputStream.cxx @@ -158,9 +158,10 @@ FileOutputStream::Cancel() noexcept #else +#include <cerrno> + #include <fcntl.h> #include <unistd.h> -#include <errno.h> #ifdef HAVE_O_TMPFILE #ifndef O_TMPFILE diff --git a/src/lib/xiph/FlacIOHandle.cxx b/src/lib/xiph/FlacIOHandle.cxx index 1b523fcef..fb0079b20 100644 --- a/src/lib/xiph/FlacIOHandle.cxx +++ b/src/lib/xiph/FlacIOHandle.cxx @@ -22,7 +22,8 @@ #include "util/Compiler.h" #include "system/Error.hxx" -#include <errno.h> +#include <cerrno> + #include <stdio.h> static size_t diff --git a/src/net/Resolver.cxx b/src/net/Resolver.cxx index d3c94c142..5b7adcb82 100644 --- a/src/net/Resolver.cxx +++ b/src/net/Resolver.cxx @@ -44,9 +44,10 @@ #include <net/if.h> #endif +#include <cerrno> + #include <string.h> #include <stdio.h> -#include <errno.h> static inline bool ai_is_passive(const struct addrinfo *ai) diff --git a/src/net/SocketDescriptor.cxx b/src/net/SocketDescriptor.cxx index 158a44dbc..827ace4b8 100644 --- a/src/net/SocketDescriptor.cxx +++ b/src/net/SocketDescriptor.cxx @@ -42,7 +42,8 @@ #include <netinet/tcp.h> #endif -#include <errno.h> +#include <cerrno> + #include <string.h> int diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index fe783f034..3fa423202 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -27,7 +27,7 @@ #include <winsock2.h> typedef DWORD socket_error_t; #else -#include <errno.h> +#include <cerrno> typedef int socket_error_t; #endif diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx index 336e1e123..20d123a1d 100644 --- a/src/output/plugins/FifoOutputPlugin.cxx +++ b/src/output/plugins/FifoOutputPlugin.cxx @@ -28,8 +28,9 @@ #include "Log.hxx" #include "open.h" +#include <cerrno> + #include <sys/stat.h> -#include <errno.h> #include <unistd.h> class FifoOutput final : AudioOutput { diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx index 5ed07174d..a2bb078d5 100644 --- a/src/output/plugins/OssOutputPlugin.cxx +++ b/src/output/plugins/OssOutputPlugin.cxx @@ -28,13 +28,13 @@ #include "Log.hxx" #include <cassert> +#include <cerrno> #include <iterator> #include <stdexcept> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> -#include <errno.h> #include <stdlib.h> #include <unistd.h> diff --git a/src/output/plugins/SolarisOutputPlugin.cxx b/src/output/plugins/SolarisOutputPlugin.cxx index e50109557..bad4dfd4f 100644 --- a/src/output/plugins/SolarisOutputPlugin.cxx +++ b/src/output/plugins/SolarisOutputPlugin.cxx @@ -22,12 +22,13 @@ #include "system/FileDescriptor.hxx" #include "system/Error.hxx" +#include <cerrno> + #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> -#include <errno.h> #if defined(__sun) #include <sys/audio.h> diff --git a/src/system/Error.hxx b/src/system/Error.hxx index 5027e6864..0050eb9c6 100644 --- a/src/system/Error.hxx +++ b/src/system/Error.hxx @@ -92,7 +92,8 @@ FormatLastError(const char *fmt, Args&&... args) noexcept #endif /* _WIN32 */ -#include <errno.h> +#include <cerrno> + #include <string.h> /** diff --git a/src/system/FatalError.cxx b/src/system/FatalError.cxx index 497897ca4..7e195a7d2 100644 --- a/src/system/FatalError.cxx +++ b/src/system/FatalError.cxx @@ -30,7 +30,7 @@ #ifdef _WIN32 #include <windows.h> #else -#include <errno.h> +#include <cerrno> #endif static constexpr Domain fatal_error_domain("fatal_error"); diff --git a/test/WriteFile.cxx b/test/WriteFile.cxx index 8fcd6bb19..587eecdb2 100644 --- a/test/WriteFile.cxx +++ b/test/WriteFile.cxx @@ -20,8 +20,9 @@ #include "fs/io/FileOutputStream.hxx" #include "util/PrintException.hxx" +#include <cerrno> + #include <unistd.h> -#include <errno.h> #include <string.h> #include <stdlib.h> |