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

Updated zlib, gzip to work with system zlib. #1545

Merged
merged 2 commits into from
Nov 16, 2012

Conversation

kmsquire
Copy link
Member

  • Use 64-bit functions by default if available, otherwise
    use 32-bit functions; ZFileOffset type is set accordingly
  • Fix race condition in GZip.gzclose
  • Export GZip.readall
  • Make sure eof is set after read

The main change here is testing for the existence of 64-bit functions, for which dlsym_e() is now exported. Please let me know if there is a better way to deal with this.

Edit: to clarify, dlsym_e() avoids an error message from dlsym() when the function in question does not exist.

Thanks,
Kevin

* Use 64-bit functions by default if available, otherwise
  use 32-bit functions; ZFileOffset type is set accordingly
* Fix race condition in GZip.gzclose
* Export GZip.readall
* Make sure eof is set after read
@kmsquire kmsquire mentioned this pull request Nov 14, 2012
JeffBezanson added a commit that referenced this pull request Nov 16, 2012
Updated zlib, gzip to work with system zlib.
@JeffBezanson JeffBezanson merged commit b30dfd9 into JuliaLang:master Nov 16, 2012
@staticfloat
Copy link
Member

Congrats, Kevin. All tests pass my 32-bit Ubuntu builds. :)

@kmsquire kmsquire deleted the gzip_updates branch December 20, 2012 19:21
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