Skip to content

Commit

Permalink
don't check for unused uname symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
alk committed Feb 14, 2021
1 parent 01c2697 commit 95b52b0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
4 changes: 0 additions & 4 deletions cmake/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 0 additions & 4 deletions src/windows/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95b52b0

Please sign in to comment.