diff options
author | Tim van der Molen <tim@kariliq.nl> | 2020-06-15 19:51:36 +0200 |
---|---|---|
committer | Tim van der Molen <tim@kariliq.nl> | 2020-06-15 19:51:36 +0200 |
commit | 5e4c6de73a023e480a909aac1eb23d93ceb4d0fa (patch) | |
tree | 0a3f9e59cad621a17c8ed3db447285ae1d983cca /src/options.c | |
parent | a624883d92ea54886b739f1000e39ccf1afc5577 (diff) |
Enable --version-sort on systems without strverscmp()
The --version-sort option requires strverscmp(), but this is a glibc
extension that does not exist on OpenBSD and other systems. To enable
--version-sort on those systems, provide an internal implementation of
strverscmp(). The implementation is from the musl C library and is
MIT-licensed.
The build process remains the same: the verscmp flag should be set to 1
only if strverscmp() is available in libc. If verscmp is 0, then the
internal implementation is used.
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/options.c b/src/options.c index 2cd7a9e..a92b1ff 100644 --- a/src/options.c +++ b/src/options.c @@ -943,10 +943,6 @@ static void show_version(void) "stat64 " #endif -#ifdef HAVE_VERSCMP - "verscmp " -#endif - #ifdef HAVE_LIBXINERAMA "xinerama " #endif |