summaryrefslogtreecommitdiff
path: root/src/output/plugins/FifoOutputPlugin.cxx
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-12 15:51:16 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 15:51:16 -0700
commitedc4989d9c3ff89bfd4e4a178f8e057bed720d37 (patch)
treee58dc662154919b833db0bdae21522515bf4f594 /src/output/plugins/FifoOutputPlugin.cxx
parent2b3d6461e3178e8f9887c60e57409ee1912d92ce (diff)
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>
Diffstat (limited to 'src/output/plugins/FifoOutputPlugin.cxx')
-rw-r--r--src/output/plugins/FifoOutputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
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 {