aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--alc/backends/oss.cpp2
-rw-r--r--alc/backends/solaris.cpp2
-rw-r--r--config.h.in3
4 files changed, 0 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 599273a5..592a7687 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -447,8 +447,6 @@ CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC)
CHECK_SYMBOL_EXISTS(proc_pidpath libproc.h HAVE_PROC_PIDPATH)
-CHECK_FUNCTION_EXISTS(stat HAVE_STAT)
-
IF(NOT WIN32)
# We need pthreads outside of Windows, for semaphores. It's also used to
# set the priority and name of threads, when possible.
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;
diff --git a/config.h.in b/config.h.in
index 4a1e2b00..d59a954b 100644
--- a/config.h.in
+++ b/config.h.in
@@ -74,9 +74,6 @@
/* Define if we have the SDL2 backend */
#cmakedefine HAVE_SDL2
-/* Define if we have the stat function */
-#cmakedefine HAVE_STAT
-
/* Define to the size of a long int type */
#cmakedefine SIZEOF_LONG ${SIZEOF_LONG}