[vlc-devel] [PATCH V2 0/8] vlc_qsort for POSIX and FREEBSD

Thomas Guillem thomas at gllm.fr
Tue Jan 22 11:13:17 CET 2019


Changes since the last set:

 - Added "configure: add HAVE_FREEBSD detection" commit
 - Implement qsort_r using FREEBSD or POSIX prototype in src/freebsd/utils.c

Question: Should HAVE_DARWIN included in HAVE_FREEBSD ?

cf. AM_CONDITIONAL([HAVE_FREEBSD], [test "${SYS}" = "freebsd" -o "${SYS}" = "darwin"])


Thomas Guillem (8):
  vlc_common: implement VLC_WEAK for MACH-O
  configure: add HAVE_FREEBSD detection
  core: utils: add vlc_qsort
  posix: implement vlc_qsort with POSIX qsort_r
  freebsd: implement vlc_qsort with FREEBSD or POSIX qsort_r
  playlist: use vlc_qsort
  filesystem: use vlc_qsort
  compat: remove qsort_r

 configure.ac                         |  3 +-
 include/vlc_common.h                 |  2 +-
 include/vlc_fixups.h                 |  5 ---
 include/vlc_utils.h                  | 36 ++++++++++++++++
 src/Makefile.am                      | 10 ++++-
 src/freebsd/utils.c                  | 62 ++++++++++++++++++++++++++++
 src/libvlccore.sym                   |  1 +
 compat/qsort_r.c => src/misc/utils.c | 18 ++++----
 src/playlist/sort.c                  |  3 +-
 src/posix/utils.c                    | 33 +++++++++++++++
 src/text/filesystem.c                |  3 +-
 11 files changed, 158 insertions(+), 18 deletions(-)
 create mode 100644 include/vlc_utils.h
 create mode 100644 src/freebsd/utils.c
 rename compat/qsort_r.c => src/misc/utils.c (82%)
 create mode 100644 src/posix/utils.c

-- 
2.20.1



More information about the vlc-devel mailing list