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

GNU/kFreeBSD support #1093

Merged
merged 8 commits into from
Jul 16, 2016
Merged

GNU/kFreeBSD support #1093

merged 8 commits into from
Jul 16, 2016

Commits on Jul 13, 2016

  1. bx: use real alloca.h on glibc systems

    On GNU/kFreeBSD, the definition for alloca() can be found in the
    system alloca.h
    stevenc99 committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    c904fc1 View commit details
    Browse the repository at this point in the history
  2. bx: use system signal.h on glibc systems

    On GNU/kFreeBSD, sys/signal.h is only a wrapper around glibc signal.h
    anyway, leading to a #include loop in this case.
    stevenc99 committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    8fb0ab4 View commit details
    Browse the repository at this point in the history
  3. bx: support glibc-based BSD platforms

    On GNU/kFreeBSD, pthread_setname_np can be found in glibc's pthread.h
    (same as on GNU/Linux).  pthread_np.h does not exist there.
    stevenc99 committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    f2ad735 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b59412a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ad91a13 View commit details
    Browse the repository at this point in the history
  6. bx: refactor #ifdefs

    Fix potential compilation error by ensuring __GLIBC__ is only evaluated
    when actually defined.
    
    When __GLIBC__ is defined, we do not need any additional headers on BSD
    platforms (hence why using #elif).
    stevenc99 committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    423097c View commit details
    Browse the repository at this point in the history
  7. bx: further refactor #ifdefs

    Trying to evaluate __GLIBC__ will result in an error if is not defined,
    if the preprocessor does not short-cut the evaluation.
    
    Split the macros onto separate lines and define the result in a new
    BX_USE_GLIBC_PTHREAD_SETNAME_NP macro to avoid duplication.
    stevenc99 committed Jul 13, 2016
    Configuration menu
    Copy the full SHA
    6256946 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2016

  1. bx: sync with upstream

    stevenc99 committed Jul 14, 2016
    Configuration menu
    Copy the full SHA
    ef8816a View commit details
    Browse the repository at this point in the history