Skip to content

Commit

Permalink
core: don't check for socklen_t
Browse files Browse the repository at this point in the history
This type can be safely assumed to exist.
  • Loading branch information
arogge committed May 25, 2020
1 parent 9bd0c5e commit 0850068
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions core/CMakeLists.txt
Expand Up @@ -412,13 +412,6 @@ include_directories(SYSTEM ${PYTHON_INCLUDE_PATH})

include_directories(${PROJECT_SOURCE_DIR}/src)

# trick for socklen_t
set(CMAKE_EXTRA_INCLUDE_FILES "sys/socket.h")
check_type_size("socklen_t" HAVE_SOCKLEN_T)
set(CMAKE_EXTRA_INCLUDE_FILES)

set(CMAKE_EXTRA_INCLUDE_FILES sys/socket.h)

# ------------------------- Begin Generic CMake Variable Logging
# ------------------

Expand Down
4 changes: 0 additions & 4 deletions core/src/include/bc_types.h
Expand Up @@ -87,10 +87,6 @@ typedef float float32_t;
/* Unix time (time_t) widened to 64 bits */
#define utime_t int64_t

#ifndef HAVE_SOCKLEN_T
# define socklen_t int
#endif

#ifdef HAVE_WIN32
# define sockopt_val_t const char*
#else
Expand Down
3 changes: 0 additions & 3 deletions core/src/include/config.h.in
Expand Up @@ -465,9 +465,6 @@ extern char WIN_VERSION[];
// Define to 1 if you have the `snprintf' function
#cmakedefine HAVE_SNPRINTF @HAVE_SNPRINTF@

// Define to 1 if socklen_t exists
#cmakedefine HAVE_SOCKLEN_T @HAVE_SOCKLEN_T@

// Set if you have an SQLite3 Database
#cmakedefine HAVE_SQLITE3 @HAVE_SQLITE3@

Expand Down

0 comments on commit 0850068

Please sign in to comment.