aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-03-21 08:39:45 -0700
committerChris Robinson <[email protected]>2020-03-21 08:39:45 -0700
commitadf28d87aac0be1f21a38e5c5e720cae281989ce (patch)
treede2fcf62776b983215bd24233d5db8d186a4398d /alc/backends
parent12775513ae666b0433e63b82b80de87019770b35 (diff)
Remove the check for stat()
It's POSIX-2001 standard
Diffstat (limited to 'alc/backends')
-rw-r--r--alc/backends/oss.cpp2
-rw-r--r--alc/backends/solaris.cpp2
2 files changed, 0 insertions, 4 deletions
diff --git a/alc/backends/oss.cpp b/alc/backends/oss.cpp
index ad1df7d6..a24744c2 100644
--- a/alc/backends/oss.cpp
+++ b/alc/backends/oss.cpp
@@ -674,10 +674,8 @@ void OSSBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
-#ifdef HAVE_STAT
struct stat buf;
if(stat(entry.device_name.c_str(), &buf) == 0)
-#endif
{
/* Includes null char. */
outnames->append(entry.name.c_str(), entry.name.length()+1);
diff --git a/alc/backends/solaris.cpp b/alc/backends/solaris.cpp
index d292c012..93ab64cb 100644
--- a/alc/backends/solaris.cpp
+++ b/alc/backends/solaris.cpp
@@ -276,10 +276,8 @@ void SolarisBackendFactory::probe(DevProbe type, std::string *outnames)
{
case DevProbe::Playback:
{
-#ifdef HAVE_STAT
struct stat buf;
if(stat(solaris_driver.c_str(), &buf) == 0)
-#endif
outnames->append(solaris_device, sizeof(solaris_device));
}
break;