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

Port to Darwin and FreeBSD. #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Port to Darwin and FreeBSD. #10

wants to merge 2 commits into from

Conversation

splbio
Copy link

@splbio splbio commented Aug 25, 2013

This should be a pretty clean port to OS X and FreeBSD.

Use err(3) and warn(3) instead of error(3).

Define __fpending.

Hide headers specific to Linux.

This was mostly taken from the FreeBSD port by [email protected].

Add a howto build on Darwin/OS X.

splbio added 2 commits August 24, 2013 18:16
Use err(3) and warn(3) instead of error(3).

Define __fpending.

Hide headers specific to Linux.

This was mostly taken from the FreeBSD port by [email protected].

Add a howto build on Darwin/OS X.
@bukzor
Copy link

bukzor commented Mar 7, 2015

@jnovy "please advise"

@bukzor
Copy link

bukzor commented Mar 7, 2015

fwiw this is the only patch that homebrew uses to build pxz on OSX, but it's a very old version of the code they're working with:

diff --git a/pxz.c b/pxz.c
index b54f3fc..3e7e86a 100644
--- a/pxz.c
+++ b/pxz.c
@@ -259,7 +259,7 @@ int main( int argc, char **argv ) {
                        exit(EXIT_FAILURE);
                }

-               m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED|MAP_POPULATE, fileno(f), 0);
+               m = mmap(NULL, s.st_size, PROT_READ, MAP_SHARED, fileno(f), 0);
                if (m == MAP_FAILED) {
                        perror("mmap failed");
                        exit(EXIT_FAILURE);

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.

3 participants