Commit 8be08efc authored by Daniel Agar's avatar Daniel Agar

cmake configure HAVE_STROPTS_H for Fedora

parent 5be426fc
......@@ -3,6 +3,7 @@ project(pyston C CXX ASM)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(CheckIncludeFiles)
include(CheckTypeSizeof)
include(ExternalProject)
......@@ -165,6 +166,7 @@ include_directories(${LLVM_INCLUDE_DIRS})
# generate pyconfig.h
set(CMAKE_EXTRA_INCLUDE_FILES unordered_map)
check_type_sizeof("std::unordered_map<void*, void*>" SIZEOF_UNORDEREDMAP LANGUAGE CXX)
check_include_files(stropts.h HAVE_STROPTS_H)
configure_file(from_cpython/Include/pyconfig.h.in from_cpython/Include/pyconfig.h)
find_package(LibLZMA REQUIRED)
......
......@@ -108,7 +108,6 @@
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_STROPTS_H 1
#define HAVE_SYSEXITS_H 1
#define HAVE_SYS_EPOLL_H 1
#define HAVE_SYS_FILE_H 1
......@@ -131,6 +130,7 @@
#define HAVE_WCHAR_H 1
#define HAVE_WORKING_TZSET 1
#define HAVE_PUTENV 1
#cmakedefine HAVE_STROPTS_H 1
// Added this for some Pyston modifications:
#define MAX_PYSTRING_SIZE (PY_SSIZE_T_MAX/2 - (1<<20))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment