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

Various Portability Improvements #27

Merged
merged 5 commits into from
Apr 2, 2013
Merged

Conversation

weinhold
Copy link
Contributor

@weinhold weinhold commented Apr 2, 2013

A few patches in preparation of my (not quite ready yet) Haiku port of libsolv. The changes aren't Haiku specific, but general portability improvements, like making header C++ safe, C89 fixes, a POSIX fix, etc.

* There were identical SYSTEM_LIBRARIES definitions in several CMakeLists.txt
  files (well almost identical -- some still checked for DEBIAN instead of
  ENABLE_RPMDB). Now it's defined in the main CMakeLists.txt.
* Remove --as-needed from CMAKE_C_FLAGS and add it to SYSTEM_LIBRARIES. It
  isn't a compiler flag and older gcc's issue a warning when encountering it
  on a compile line.
Make sure variables are declared at the beginning of a block.
futimens() is POSIX, futimes() isn't.
mlschroe added a commit that referenced this pull request Apr 2, 2013
Various Portability Improvements
@mlschroe mlschroe merged commit 3db2728 into openSUSE:master Apr 2, 2013
A few headers already included 'export "C"' blocks, also wrapping
other #include's. This patch cleanly wraps the contents of all public
headers instead.
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