Skip to content

Fix compilation when compiler support atomic operations - #67

Open
rosorio wants to merge 1 commit into
c-icap:masterfrom
rosorio:master
Open

Fix compilation when compiler support atomic operations#67
rosorio wants to merge 1 commit into
c-icap:masterfrom
rosorio:master

Conversation

@rosorio

@rosorio rosorio commented Jul 6, 2024

Copy link
Copy Markdown

error: conflicting types for 'ci_atomic*' reported in issue #66

error: conflicting types for 'ci_atomic*'
@chtsanti

Copy link
Copy Markdown
Contributor

I think this patch did not handle correctly the issue in FreeBSD. The pthreads locking is used only if atomic operations are not supported and in this case the preprocessor variable CI_ATOMIC_TYPE is empty. If it has the value "ci_atomic" this part of code should not used.

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.

2 participants