OSDN Git Service

Use alphasort where versionsort is not available.
authorThomas Klausner <wiz@NetBSD.org>
Thu, 3 Mar 2016 11:58:07 +0000 (12:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Mar 2016 15:19:06 +0000 (16:19 +0100)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/conf.c
src/ucm/parser.c

index a4f2a4f..f8b7a66 100644 (file)
@@ -3549,7 +3549,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
                        int n;
 
 #ifndef DOC_HIDDEN
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun)
 #define SORTFUNC       versionsort
 #else
 #define SORTFUNC       alphasort
index 9e1cb41..8405bd2 100644 (file)
@@ -1264,7 +1264,7 @@ int uc_mgr_scan_master_configs(const char **_list[])
                "%s", env ? env : ALSA_USE_CASE_DIR);
        filename[MAX_FILE-1] = '\0';
 
-#ifdef _GNU_SOURCE
+#if defined(_GNU_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__sun)
 #define SORTFUNC       versionsort
 #else
 #define SORTFUNC       alphasort