Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Porting to freebsd: initial, compile ok, most tests ok. #286

Merged
merged 1 commit into from
Dec 24, 2016

Conversation

proller
Copy link
Contributor

@proller proller commented Dec 21, 2016

cmake .. -DCMAKE_CXX_COMPILER=`which g++6` -DCMAKE_C_COMPILER=`which gcc6` -DENABLE_LIBTCMALLOC=0 -DUSE_STATIC_LIBRARIES=0 -DMYSQLCLIENT_LIB=/usr/local/lib/mysql/libmysqlclient.so

if (0 != prctl(PR_SET_NAME, name, 0, 0, 0))
#else
#if defined(__FreeBSD__)
pthread_set_name_np(pthread_self(), name);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Result is not checked.

@@ -133,7 +133,7 @@ class Allocator
*/
void * realloc(void * buf, size_t old_size, size_t new_size, size_t alignment = 0)
{
#ifndef __APPLE__
#if !defined(__APPLE__) && !defined(__FreeBSD__)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FreeBSD has mremap (according to random internet page).

double musl_exp10(double x);

#if defined(__FreeBSD__)
//const auto& exp10 = musl_exp10; // it must be the name of a function with external linkage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove commented code if it is not needed.

@alexey-milovidov alexey-milovidov merged commit 00b63d8 into ClickHouse:master Dec 24, 2016
lgbo-ustc pushed a commit to bigo-sg/ClickHouse that referenced this pull request Feb 8, 2023
Co-authored-by: shuai.li <shuai.li@kyligence.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants