diff options
author | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 15:02:57 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alkondratenko@gmail.com> | 2021-02-14 15:44:14 -0800 |
commit | 95b52b0504a7cb2bce36d72b8bb0825833500b4c (patch) | |
tree | 475e56b4f898b248f52044d7a81263f1827c3a72 | |
parent | 01c2697fac41a5d6175ad0da21d9d753f0b385a1 (diff) | |
download | gperftools-95b52b0504a7cb2bce36d72b8bb0825833500b4c.tar.gz |
don't check for unused uname symbol
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | cmake/config.h.in | 4 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | src/windows/config.h | 4 |
4 files changed, 0 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c12e1b6..f2440c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -454,9 +454,6 @@ if(EXISTS /usr/sfw/lib/libstdc++.la) endif() endif() -# We also need to check if the kernel supports __thread, which requires uname() -check_symbol_exists("uname" "sys/utsname.h" HAVE_DECL_UNAME) - check_cxx_source_compiles( "#include <string> #include <vector> diff --git a/cmake/config.h.in b/cmake/config.h.in index 7e676ff..99e59e0 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -61,10 +61,6 @@ */ #cmakedefine01 HAVE_DECL_SLEEP -/* Define to 1 if you have the declaration of `uname', and to 0 if you don't. - */ -#cmakedefine01 HAVE_DECL_UNAME - /* Define to 1 if you have the declaration of `valloc', and to 0 if you don't. */ #cmakedefine01 HAVE_DECL_VALLOC diff --git a/configure.ac b/configure.ac index 53801ac..3b43377 100644 --- a/configure.ac +++ b/configure.ac @@ -510,9 +510,6 @@ then fi AC_SUBST(LIBSTDCXX_LA_LINKER_FLAG) -# We also need to check if the kernel supports __thread, which requires uname() -AC_CHECK_DECLS(uname,,, [#include <sys/utsname.h>]) - # In fact, a lot of the code in this directory depends on pthreads ACX_PTHREAD diff --git a/src/windows/config.h b/src/windows/config.h index dac1e04..cb8b577 100644 --- a/src/windows/config.h +++ b/src/windows/config.h @@ -67,10 +67,6 @@ */ #define HAVE_DECL_SLEEP 0 -/* Define to 1 if you have the declaration of `uname', and to 0 if you don't. - */ -#define HAVE_DECL_UNAME 0 - /* Define to 1 if you have the declaration of `valloc', and to 0 if you don't. */ #define HAVE_DECL_VALLOC 0 |