Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Jan 1, 2024
1 parent d29d02e commit 02d00f8
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 414 deletions.
6 changes: 0 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ if (Threads_FOUND)
set (CMAKE_REQUIRED_LIBRARIES Threads::Threads)
endif (Threads_FOUND)

check_cxx_symbol_exists (pthread_rwlock_destroy pthread.h HAVE_RWLOCK_DESTROY)
check_cxx_symbol_exists (pthread_rwlock_init pthread.h HAVE_RWLOCK_INIT)
check_cxx_symbol_exists (pthread_rwlock_rdlock pthread.h HAVE_RWLOCK_RDLOCK)
check_cxx_symbol_exists (pthread_rwlock_unlock pthread.h HAVE_RWLOCK_UNLOCK)
check_cxx_symbol_exists (pthread_rwlock_wrlock pthread.h HAVE_RWLOCK_WRLOCK)
check_cxx_symbol_exists (pthread_threadid_np pthread.h HAVE_PTHREAD_THREADID_NP)

cmake_pop_check_state ()
Expand Down Expand Up @@ -391,7 +386,6 @@ set (GLOG_SRCS
${GLOG_PUBLIC_H}
src/base/commandlineflags.h
src/base/googleinit.h
src/base/mutex.h
src/demangle.cc
src/demangle.h
src/logging.cc
Expand Down
3 changes: 1 addition & 2 deletions bazel/glog.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def glog_library(with_gflags = 1, **kwargs):
"-Wno-unused-function",
"-Wno-unused-local-typedefs",
"-Wno-unused-variable",
# Allows src/base/mutex.h to include pthread.h.
# Allows to include pthread.h.
"-DHAVE_PTHREAD",
# Allows src/logging.cc to determine the host name.
"-DHAVE_SYS_UTSNAME_H",
Expand Down Expand Up @@ -154,7 +154,6 @@ def glog_library(with_gflags = 1, **kwargs):
name = "shared_headers",
srcs = [
"src/base/commandlineflags.h",
"src/base/mutex.h",
"src/stacktrace.h",
"src/utilities.h",
]
Expand Down
352 changes: 0 additions & 352 deletions src/base/mutex.h

This file was deleted.

3 changes: 0 additions & 3 deletions src/config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
/* Define if you have the 'pwrite' function */
#cmakedefine HAVE_PWRITE

/* define if the compiler implements pthread_rwlock_* */
#cmakedefine HAVE_RWLOCK

/* Define if you have the 'sigaction' function */
#cmakedefine HAVE_SIGACTION

Expand Down
Loading

0 comments on commit 02d00f8

Please sign in to comment.