Skip to content

minor cleanups to make it more cross platform#54

Open
VVelox wants to merge 4 commits intoha7ilm:masterfrom
VVelox:master
Open

minor cleanups to make it more cross platform#54
VVelox wants to merge 4 commits intoha7ilm:masterfrom
VVelox:master

Conversation

@VVelox
Copy link
Copy Markdown

@VVelox VVelox commented Feb 10, 2020

Uses list_cpu_features instead to get CPU features. Calling /proc/cpuinfo is a bad linuxism as lots of systems don't use that.

Use /usr/bin/env to invoke python2 instead of staticly coding the path. This avoids relying on a system installing python2 /usr/bin.

@VVelox
Copy link
Copy Markdown
Author

VVelox commented Feb 10, 2020

Also went and updated csdr.c to use CLOCK_MONOTONIC_FAST on FreeBSD.

@VVelox
Copy link
Copy Markdown
Author

VVelox commented Feb 10, 2020

env_csdr_dynamic_bufsize_on is now set to 1 and setting the pipe size on FreeBSD is now #ifed out.

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.

1 participant