1. 14 Sep, 2012 6 commits
    • Raphael Kubo da Costa's avatar
      Do not hardcode the need for libresolv. · 2d18f3cd
      Raphael Kubo da Costa authored
      libresolv is only present on systems which use glibc; platforms such as
      FreeBSD have __b64_ntop as part of libc itself.
      
      Improve the detection process and only link against libresolv if it exists
      on the system, and remember to reset CMAKE_REQUIRED_LIBRARIES after
      performing the necessary tests, since we do not always want to link against
      libresolv.
      2d18f3cd
    • Raphael Kubo da Costa's avatar
      Tune the definitions needed when building with -ansi. · 4c148e5f
      Raphael Kubo da Costa authored
      The current definitions were mostly useful to glibc and followed its
      feature_test_macros(3) documentation.
      
      However, this means other platforms still had problems when building with
      strict compilation flags. _BSD_SOURCE, for example, is only recognized by
      glibc, and other platforms sometimes need _XOPEN_SOURCE instead, or even the
      removal of some definitions (such as the outdate _POSIX_SOURCE one).
      
      _POSIX_SOURCE also had to be conditionally defined in some places, as what
      it enables or disables during compilation varies across systems.
      4c148e5f
    • Raphael Kubo da Costa's avatar
      Add some missing feature macro definitions. · 8f1ef3d6
      Raphael Kubo da Costa authored
      Building with -ansi failed due to some code (as well as system
      headers) using non-C89 features. Fix that by adding the usual
      _POSIX_SOURCE and _BSD_SOURCE definitions already present in some
      other files.
      8f1ef3d6
    • Raphael Kubo da Costa's avatar
      Use C-style comments in rfbconfig.h.cmake and C source code. · 3cbef1a9
      Raphael Kubo da Costa authored
      Using C++-style comments when building the code with -ansi does not
      work, so be more conservative with the comment style.
      3cbef1a9
    • Raphael Kubo da Costa's avatar
      Correctly include rfbconfig.h. · 88e60435
      Raphael Kubo da Costa authored
      build_dir/rfb is not passed as an include directory automatically to
      the compiler, so including that file fails.
      88e60435
    • Raphael Kubo da Costa's avatar
      CMake: Link against libgcrypt when it is found. · 539b310b
      Raphael Kubo da Costa authored
      So far, libgcrypt was looked for but no targets linked against it
      directly; this caused linking problems for the client and server
      examples, as the symbols they needed were not passed to the linker.
      
      The issue that the GnuTLS websockets code uses libgcrypt regardless of
      whether it has been found or not has not been touched by this commit,
      though.
      539b310b
  2. 19 Aug, 2012 3 commits
  3. 20 Jul, 2012 2 commits
  4. 31 May, 2012 1 commit
  5. 23 May, 2012 1 commit
  6. 21 May, 2012 1 commit
  7. 09 May, 2012 1 commit
  8. 07 May, 2012 2 commits
  9. 05 May, 2012 1 commit
  10. 04 May, 2012 3 commits
  11. 03 May, 2012 2 commits
  12. 30 Apr, 2012 4 commits
  13. 27 Apr, 2012 1 commit
  14. 26 Apr, 2012 4 commits
  15. 25 Apr, 2012 8 commits