change errno.h to cerrno
The former is deprecated by C++14. It's also functionally the same. From the standard: 19.4 The header<cerrno>is described in Table 43. Its contents are the same as the POSIX header<errno.h>,except that errno shall be defined as a macro. [Note: The intent is to remain in close alignment with the POSIX standard.] A separate errno value shall be provided for each thread. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user