Import of pkgsrc-2016Q3

This commit is contained in:
2016-11-18 22:39:22 +01:00
committed by sambuc
parent 9d819b6d54
commit 1242aa1e36
35952 changed files with 949747 additions and 377081 deletions
+9 -12
View File
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.15 2014/09/10 15:59:34 jperkin Exp $
#
# $NetBSD: Makefile,v 1.19 2016/06/03 15:45:43 jperkin Exp $
DISTNAME= alsa-lib-1.0.27.2
DISTNAME= alsa-lib-1.1.1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.alsa-project.org/pub/lib/
EXTRACT_SUFX= .tar.bz2
@@ -12,6 +11,7 @@ COMMENT= Advanced Linux Sound Architecture (ALSA)
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LANGUAGES= c99
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake
@@ -19,22 +19,19 @@ PKGCONFIG_OVERRIDE+= utils/alsa.pc.in
CONFIGURE_ARGS+= --disable-python
LIBS.SunOS+= -lsocket -lnsl
CPPFLAGS.SunOS+= -std=c99 -D_POSIX_C_SOURCE=200112L
CPPFLAGS.SunOS+= -D__EXTENSIONS__ -DBSD_COMP -DMAP_FILE=0
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600
CPPFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int16_t=uint16_t
CPPFLAGS.SunOS+= -Du_int32_t=uint32_t -Du_int64_t=uint64_t
CPPFLAGS.SunOS+= -D__u32=uint32_t -D__u64=uint64_t
CPPFLAGS.SunOS+= -Dbswap_64=BSWAP_64 -Dbswap_32=BSWAP_32 -Dbswap_16=BSWAP_16
CPPFLAGS.SunOS+= -D__u32=uint32_t -D__u64=uint64_t
CPPFLAGS.NetBSD+= -D__u32=uint32_t -D__u64=uint64_t
CPPFLAGS.FreeBSD+= -D__u32=uint32_t -D__u64=uint64_t
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --without-versioned
BUILDLINK_TRANSFORM+= rm:-Wl,--version-script=Versions
.endif
LIBS.SunOS+= -lsocket -lnsl
CONFIGURE_ARGS.SunOS+= --without-versioned
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=Versions
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
+14 -1
View File
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.4 2014/06/09 12:21:07 ryoon Exp $
@comment $NetBSD: PLIST,v 1.5 2016/02/18 15:15:57 wiz Exp $
bin/aserver
include/alsa/alisp.h
include/alsa/asoundef.h
@@ -26,14 +26,17 @@ include/alsa/seq.h
include/alsa/seq_event.h
include/alsa/seq_midi_event.h
include/alsa/seqmid.h
include/alsa/sound/asoc.h
include/alsa/sound/asound_fm.h
include/alsa/sound/emu10k1.h
include/alsa/sound/hdsp.h
include/alsa/sound/hdspm.h
include/alsa/sound/sb16_csp.h
include/alsa/sound/sscape_ioctl.h
include/alsa/sound/tlv.h
include/alsa/sound/type_compat.h
include/alsa/timer.h
include/alsa/topology.h
include/alsa/use-case.h
include/alsa/version.h
include/sys/asoundlib.h
@@ -79,6 +82,7 @@ share/alsa/cards/ICE1724.conf
share/alsa/cards/ICH-MODEM.conf
share/alsa/cards/ICH.conf
share/alsa/cards/ICH4.conf
share/alsa/cards/Loopback.conf
share/alsa/cards/Maestro3.conf
share/alsa/cards/NFORCE.conf
share/alsa/cards/PC-Speaker.conf
@@ -114,6 +118,7 @@ share/alsa/pcm/iec958.conf
share/alsa/pcm/modem.conf
share/alsa/pcm/rear.conf
share/alsa/pcm/side.conf
share/alsa/pcm/surround21.conf
share/alsa/pcm/surround40.conf
share/alsa/pcm/surround41.conf
share/alsa/pcm/surround50.conf
@@ -121,8 +126,14 @@ share/alsa/pcm/surround51.conf
share/alsa/pcm/surround71.conf
share/alsa/smixer.conf
share/alsa/sndo-mixer.alisp
share/alsa/topology/broadwell/broadwell.conf
share/alsa/ucm/DAISY-I2S/DAISY-I2S.conf
share/alsa/ucm/DAISY-I2S/HiFi.conf
share/alsa/ucm/GoogleNyan/GoogleNyan.conf
share/alsa/ucm/GoogleNyan/HiFi.conf
share/alsa/ucm/PAZ00/HiFi.conf
share/alsa/ucm/PAZ00/PAZ00.conf
share/alsa/ucm/PAZ00/Record.conf
share/alsa/ucm/PandaBoard/FMAnalog
share/alsa/ucm/PandaBoard/PandaBoard.conf
share/alsa/ucm/PandaBoard/hifi
@@ -144,4 +155,6 @@ share/alsa/ucm/SDP4430/hifiLP
share/alsa/ucm/SDP4430/record
share/alsa/ucm/SDP4430/voice
share/alsa/ucm/SDP4430/voiceCall
share/alsa/ucm/broadwell-rt286/HiFi
share/alsa/ucm/broadwell-rt286/broadwell-rt286.conf
share/alsa/ucm/tegraalc5632/tegraalc5632.conf
+18 -47
View File
@@ -1,52 +1,23 @@
$NetBSD: distinfo,v 1.17 2015/01/10 10:14:20 rumko Exp $
$NetBSD: distinfo,v 1.22 2016/06/03 15:45:43 jperkin Exp $
SHA1 (alsa-lib-1.0.27.2.tar.bz2) = 9cd50f4b5f07d5e7213dd1277b8673e677804cf8
RMD160 (alsa-lib-1.0.27.2.tar.bz2) = 6794e626affe9b6b6ec5fb64ff31384526b160c2
Size (alsa-lib-1.0.27.2.tar.bz2) = 906844 bytes
SHA1 (patch-aa) = 5a8e9571ac6fb1f1f6cbd18d3859468a7b64076f
SHA1 (patch-ab) = 4853bdbdd559c4fa6a9d00dca3e880022d7fc6ba
SHA1 (patch-ac) = 47f5cad6c436b08161acd726090ec20a9cb50fc8
SHA1 (patch-ad) = 10beb6cca7cf7c554a13337e8cded23e02bca2c8
SHA1 (patch-ae) = f1eced4561ded4e685f5e690393c7b93e4c42837
SHA1 (patch-af) = b5d0a48da183c0725367b08abb24bf1fed85cb30
SHA1 (patch-ag) = bea09d714bf75735f5be6d370f7242c34b73cb95
SHA1 (patch-ah) = 3d2aa98ba2791c2beb152d7e3a454b8d6bb527d3
SHA1 (patch-ai) = 9eb6c61d013f187267c40fdd4f1f466704507619
SHA1 (patch-aj) = 82a5b4cf2501c94d4cc5e3275078d84ded1e7a79
SHA1 (patch-ak) = 39a782c8882a86226f18137d33c70a3736c48cc6
SHA1 (patch-al) = 76de42304d5ba90bf5e8def57f523c1ee910d9df
SHA1 (patch-am) = 7b5cf015ec0612c1c4a9a864d42d84bba7a78e47
SHA1 (patch-an) = c7253acaaf2aeb96310d14c9e03853bc4cd4d0cd
SHA1 (patch-ao) = 25ac431685e033b165a9abdcd44246772c1f99b5
SHA1 (patch-ap) = deaa53fcf3fc23c7683388b5e37b3d6593776121
SHA1 (patch-aq) = 6a6cf97a17997a9ffc5d269ad2231fc0451bd532
SHA1 (patch-ar) = 8823c573ac4f6ce038b1067f71a8de91e73bea20
SHA1 (patch-as) = 946a179a675d6c5e03e0f7734ac97b0592806912
SHA1 (patch-at) = 831c8b94e079a33057effcbee7113dfc3ca5533e
SHA1 (patch-au) = 3dbf68b4ad655f2b2c91dcce8ca5daac6e80a361
SHA1 (patch-av) = 5f145c3755bf510be6fb101e30d40e10b8dcbd6d
SHA1 (patch-aw) = dfad5799001f9e1de7f5892b9a89bc4b6defd9e9
SHA1 (patch-ax) = cab065c0b4fb697e21c058b3be1fc1665692ffd3
SHA1 (patch-ay) = 3c5dc895c88354b03df4d9ca516465ce3fdc3465
SHA1 (patch-az) = 6664cb045360c770c80e8d0a7e8e7192d8267487
SHA1 (patch-ba) = ab5b3fbd497e29c9b1e548e3f510fce7b994f5f3
SHA1 (patch-bb) = 300c18e806b090cbe6dca1f133bbaace9625fb91
SHA1 (patch-bc) = 0b034b98d536c4ab7f785420d0d51c3d0763d960
SHA1 (patch-bd) = 63a102186f4df59da93bedaac772530e166a9fde
SHA1 (patch-be) = e071d0f3518dac8bbda216d4bd850a2a3557b103
SHA1 (patch-bf) = 10588dd9f8faac208b8f314676558c2c7da12063
SHA1 (patch-bg) = 29c0fb6c1fb6a11e7f42778bdd965b9d25ddfd0c
SHA1 (patch-bh) = a64e54b14946697fdc15b274238851fe8bd32106
SHA1 (patch-bi) = b5038db277068034281787c0072201beae8df8ff
SHA1 (alsa-lib-1.1.1.tar.bz2) = 09f7e9b2d88287e04a4bb0d56e0cbc9018e524ec
RMD160 (alsa-lib-1.1.1.tar.bz2) = 619a6c224cb52b9013e59c2f167e4375651ae03e
SHA512 (alsa-lib-1.1.1.tar.bz2) = dacd0a74adc682ac0034cbeba2de3d1a141e0ac2e564c9e04dae202ffaf87ef3a1e01307afc2fd2d9cfe679e5b101c379f9b6ea5f7ccceeed14a427bd5232bc7
Size (alsa-lib-1.1.1.tar.bz2) = 932105 bytes
SHA1 (patch-ad) = 79a0f048751899247ec12990cd02332b977af248
SHA1 (patch-ae) = 7ad3a3c3ee4be2c80fa6b0a2ea28563efd399a60
SHA1 (patch-af) = 257b06f10616c04c2724e30777b027e5e7e443f9
SHA1 (patch-ah) = 4dd4e27d0dfb6cedf79775b6d01a0b8c6617cdf0
SHA1 (patch-aq) = 4cfecee96f04bd6efa5c8078916672b0b9623fa4
SHA1 (patch-bg) = b726769272dd214e67f2407ed5a0199189540557
SHA1 (patch-bi) = 7e74ebe53cc2ab273f5235775e391a6ef28d1006
SHA1 (patch-bj) = 5b7a36747e57e41eddb05cd1b1d9771a36b0c4f7
SHA1 (patch-bk) = 55754e4d0ac947c2e7e59b604a21fb5798ae5b39
SHA1 (patch-include_iatomic.h) = 30099667b490c0e960a7e8883da52c39f4396b9d
SHA1 (patch-include_pcm.h) = 9558c5f5c80276632d27e0278cd33ee77d8281a5
SHA1 (patch-include_sound_asound.h) = 456b8545668294d38a83e98818d76bd2f717df75
SHA1 (patch-src_compat_hsearch__r.c) = 017bf104203233e85e9f3083f43150de6f341ad5
SHA1 (patch-src_conf.c) = 43e35f6a133cf297d3309bc8c4846beb295e5242
SHA1 (patch-configure.ac) = 1c407e8a9d9ea745ab1b79175f6fc0ec6d475acc
SHA1 (patch-include_iatomic.h) = 7096f31a6b38c10b2e11a907f8431d33d98cce94
SHA1 (patch-src_conf.c) = 432e04179798c54a76f5ce072dd9c0b79221df85
SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e865
SHA1 (patch-src_pcm_pcm__mmap.c) = 8ce33dae5215ee441196414e0c1ba02e4757e32d
SHA1 (patch-src_pcm_pcm__mmap.c) = 2d0f05aa53b30cef1ec083aa4f5d559d0a679058
SHA1 (patch-src_seq_seq__midi__event.c) = 2a5de492d6ca19a0f0c564e8f5a065e5fc57ea5c
SHA1 (patch-src_shmarea.c) = e6da001119f4e164b606e19a4c12df9aa05caa6a
SHA1 (patch-src_ucm_parser.c) = 3c376ae30f11d749ea5e41da89a72269710a3b10
SHA1 (patch-src_shmarea.c) = d6d0876ae7911ff16138bb82a3b1c79e795218cf
SHA1 (patch-src_ucm_parser.c) = 13dc6b85281d996450c1010cec1bc6e9e87e6b3c
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-aa,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- aserver/aserver.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ aserver/aserver.c
@@ -35,6 +35,10 @@
#include "aserver.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
char *command;
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-31
View File
@@ -1,31 +0,0 @@
$NetBSD: patch-ab,v 1.6 2014/06/09 12:21:07 ryoon Exp $
--- configure.orig 2013-07-08 12:32:46.000000000 +0000
+++ configure
@@ -13322,6 +13322,11 @@ test "x$prefix" = xNONE && prefix=$ac_de
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
DEFS=-DHAVE_CONFIG_H
+case $host_os in
+ netbsd*|freebsd*|dragonfly*)
+ DEFS="$DEFS -Dbswap_32=bswap32 -Dbswap_16=bswap16 -Dbswap_64=bswap64"
+ ;;
+esac
ac_libobjs=
ac_ltlibobjs=
@@ -15815,6 +15820,14 @@ if test -n "$ac_unrecognized_opts" && te
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
+case $host_os in
+ netbsd*|freebsd*|dragonfly*)
+ HAVE_LIBDL=yes
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+ ;;
+esac
echo "Creating asoundlib.h..."
cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
-25
View File
@@ -1,25 +0,0 @@
$NetBSD: patch-ac,v 1.4 2014/03/25 23:06:07 asau Exp $
--- include/asoundlib-head.h.orig 2008-12-18 22:01:21.000000000 -0500
+++ include/asoundlib-head.h
@@ -34,7 +34,20 @@
#include <string.h>
#include <fcntl.h>
#include <assert.h>
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define __LITTLE_ENDIAN 1234
+#define __BIG_ENDIAN 4321
+#ifdef _BIG_ENDIAN
+#define __BYTE_ORDER __BIG_ENDIAN
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+#else
#include <endian.h>
+#endif
#include <sys/poll.h>
#include <errno.h>
#include <stdarg.h>
+2 -11
View File
@@ -1,6 +1,6 @@
$NetBSD: patch-ad,v 1.5 2015/01/10 10:14:20 rumko Exp $
$NetBSD: patch-ad,v 1.7 2016/04/15 08:47:50 wiz Exp $
--- include/global.h.orig 2013-07-08 12:31:36.000000000 +0000
--- include/global.h.orig 2015-11-09 07:39:18.000000000 +0000
+++ include/global.h
@@ -30,6 +30,13 @@
@@ -16,12 +16,3 @@ $NetBSD: patch-ad,v 1.5 2015/01/10 10:14:20 rumko Exp $
#ifdef __cplusplus
extern "C" {
@@ -133,7 +140,7 @@ int snd_shm_area_destroy(struct snd_shm_
int snd_user_file(const char *file, char **result);
-#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE)
+#if !defined(_POSIX_C_SOURCE) && !defined(_POSIX_SOURCE) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* microseconds */
+13 -21
View File
@@ -1,13 +1,14 @@
$NetBSD: patch-ae,v 1.5 2014/06/09 12:21:07 ryoon Exp $
$NetBSD: patch-ae,v 1.9 2016/06/03 15:45:44 jperkin Exp $
--- include/local.h.orig 2013-07-08 12:31:36.000000000 +0000
- Don't assert GNU ld on Solaris, where it might not be true.
- Add endian compat.
--- include/local.h.orig 2016-03-31 13:10:39.000000000 +0000
+++ include/local.h
@@ -28,11 +28,26 @@
#include <string.h>
#include <fcntl.h>
#include <assert.h>
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
@@ -43,6 +43,15 @@
#ifndef __BIG_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#endif
+#elif defined(__sun)
+#include <sys/byteorder.h>
+#define __LITTLE_ENDIAN 1234
@@ -17,19 +18,10 @@ $NetBSD: patch-ae,v 1.5 2014/06/09 12:21:07 ryoon Exp $
+#else
+#define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+#else
#include <endian.h>
+#endif
#include <stdarg.h>
#include <sys/poll.h>
#include <errno.h>
+#if defined(__linux__)
#include <linux/ioctl.h>
+#endif
#include "config.h"
#ifdef SUPPORT_RESMGR
@@ -228,7 +245,9 @@ extern snd_lib_error_handler_t snd_err_m
#else
#error Header defining endianness not defined
#endif
@@ -253,7 +262,9 @@ extern snd_lib_error_handler_t snd_err_m
/*
*/
+2 -2
View File
@@ -1,4 +1,4 @@
$NetBSD: patch-af,v 1.4 2014/03/25 23:06:07 asau Exp $
$NetBSD: patch-af,v 1.5 2016/04/15 08:47:50 wiz Exp $
--- include/search.h.orig 2008-10-29 08:42:10.000000000 -0400
+++ include/search.h
@@ -6,7 +6,7 @@ $NetBSD: patch-af,v 1.4 2014/03/25 23:06:07 asau Exp $
#ifndef _SEARCH_H
#define _SEARCH_H 1
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
+#if !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <features.h>
+#else
+#ifdef __sun
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-ag,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/control/control_shm.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/control/control_shm.c
@@ -35,6 +35,10 @@
#include <netdb.h>
#include "aserver.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_control_shm = "";
+1 -12
View File
@@ -1,4 +1,4 @@
$NetBSD: patch-ah,v 1.3 2014/06/09 12:21:07 ryoon Exp $
$NetBSD: patch-ah,v 1.4 2016/04/15 08:47:50 wiz Exp $
--- src/pcm/pcm.c.orig 2013-07-08 12:31:36.000000000 +0000
+++ src/pcm/pcm.c
@@ -11,14 +11,3 @@ $NetBSD: patch-ah,v 1.3 2014/06/09 12:21:07 ryoon Exp $
#include <stdarg.h>
#include <signal.h>
#include <ctype.h>
@@ -640,6 +640,10 @@ playback devices.
#include <limits.h>
#include "pcm_local.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
/**
* \brief get identifier of PCM handle
* \param pcm PCM handle
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-ai,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_adpcm.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_adpcm.c
@@ -56,7 +56,9 @@ IMA compatibility project proceedings, V
come across a good description of XA yet.
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-aj,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_alaw.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_alaw.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-ak,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_copy.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_copy.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-al,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_dmix.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_dmix.c
@@ -45,6 +45,10 @@
#include <sys/mman.h>
#include "pcm_direct.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_dmix = "";
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-am,v 1.5 2014/06/09 12:21:07 ryoon Exp $
--- src/pcm/pcm_dmix_generic.c.orig 2013-07-08 12:31:36.000000000 +0000
+++ src/pcm/pcm_dmix_generic.c
@@ -125,7 +125,9 @@ static void mix_select_callbacks(snd_pcm
(1ULL << SND_PCM_FORMAT_S24_LE) | (1ULL << SND_PCM_FORMAT_S24_3LE) | \
(1ULL << SND_PCM_FORMAT_U8))
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
static void generic_mix_areas_16_native(unsigned int size,
volatile signed short *dst,
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-an,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_dshare.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_dshare.c
@@ -45,6 +45,10 @@
#include <sys/mman.h>
#include "pcm_direct.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_dshare = "";
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-ao,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_dsnoop.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_dsnoop.c
@@ -45,6 +45,10 @@
#include <sys/mman.h>
#include "pcm_direct.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_dsnoop = "";
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-ap,v 1.5 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_file.c.orig 2009-05-06 07:07:23.000000000 +0000
+++ src/pcm/pcm_file.c
@@ -26,8 +26,10 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <endian.h>
#include <byteswap.h>
+#endif
#include <ctype.h>
#include <string.h>
#include "pcm_local.h"
+1 -12
View File
@@ -1,18 +1,7 @@
$NetBSD: patch-aq,v 1.3 2014/06/09 12:21:07 ryoon Exp $
$NetBSD: patch-aq,v 1.4 2016/04/15 08:47:50 wiz Exp $
--- src/pcm/pcm_hw.c.orig 2013-07-08 12:31:36.000000000 +0000
+++ src/pcm/pcm_hw.c
@@ -41,6 +41,10 @@
#include "../control/control_local.h"
#include "../timer/timer_local.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
//#define DEBUG_RW /* use to debug readi/writei/readn/writen */
//#define DEBUG_MMAP /* debug mmap_commit */
@@ -220,10 +224,11 @@ static int snd_pcm_hw_nonblock(snd_pcm_t
static int snd_pcm_hw_async(snd_pcm_t *pcm, int sig, pid_t pid)
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-ar,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_iec958.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_iec958.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-as,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_ioplug.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_ioplug.c
@@ -31,6 +31,10 @@
#include "pcm_ext_parm.h"
#include "pcm_generic.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_ioplug = "";
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-at,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_lfloat.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_lfloat.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-au,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_linear.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_linear.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-av,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_local.h.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_local.h
@@ -393,6 +393,10 @@ int _snd_pcm_poll_descriptor(snd_pcm_t *
#define _snd_pcm_link_descriptor _snd_pcm_poll_descriptor /* FIXME */
#define _snd_pcm_async_descriptor _snd_pcm_poll_descriptor /* FIXME */
+#ifndef ESTRPIPE
+#define ESTRPIPE EPIPE
+#endif
+
/* handle special error cases */
static inline int snd_pcm_check_error(snd_pcm_t *pcm, int err)
{
-20
View File
@@ -1,20 +0,0 @@
$NetBSD: patch-aw,v 1.5 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_misc.c.orig 2008-10-29 14:42:10 +0200
+++ src/pcm/pcm_misc.c 2008-12-21 17:08:14 +0200
@@ -23,7 +23,15 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
+#ifdef __NetBSD__
+#include <sys/bswap.h>
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/endian.h>
+#elif defined (__sun)
+#include <sys/byteorder.h>
+#else
#include <byteswap.h>
+#endif
#include "pcm_local.h"
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-ax,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_mulaw.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_mulaw.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
-23
View File
@@ -1,23 +0,0 @@
$NetBSD: patch-ay,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_null.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_null.c
@@ -26,12 +26,18 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include <limits.h>
#include <sys/shm.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_null = "";
-25
View File
@@ -1,25 +0,0 @@
$NetBSD: patch-az,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_rate.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_rate.c
@@ -28,7 +28,9 @@
*
*/
#include <inttypes.h>
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "pcm_rate.h"
@@ -36,6 +38,10 @@
#include "plugin_ops.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#if 0
#define DEBUG_REFINE
#endif
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-ba,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_rate_linear.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_rate_linear.c
@@ -21,7 +21,9 @@
*/
#include <inttypes.h>
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include "pcm_local.h"
#include "pcm_plugin.h"
#include "pcm_rate.h"
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-bb,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_route.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_route.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include <math.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-bc,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_share.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_share.c
@@ -39,6 +39,10 @@
#include <pthread.h>
#include "pcm_local.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_share = "";
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-bd,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_shm.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_shm.c
@@ -45,6 +45,10 @@
#include <netdb.h>
#include "aserver.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
#ifndef PIC
/* entry for static linking */
const char *_snd_module_pcm_shm = "";
-15
View File
@@ -1,15 +0,0 @@
$NetBSD: patch-be,v 1.1.1.1 2008/12/19 03:33:00 jmcneill Exp $
--- src/pcm/pcm_simple.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_simple.c
@@ -25,6 +25,10 @@
#include "pcm_local.h"
+#ifndef EBADFD
+#define EBADFD EBADF
+#endif
+
static int set_buffer_time(snd_spcm_latency_t latency,
unsigned int *buffer_time)
{
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-bf,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_softvol.c.orig 2008-10-29 08:42:10.000000000 -0400
+++ src/pcm/pcm_softvol.c
@@ -26,7 +26,9 @@
*
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include <math.h>
#include "pcm_local.h"
#include "pcm_plugin.h"
+12 -12
View File
@@ -1,8 +1,8 @@
$NetBSD: patch-bg,v 1.2 2012/02/15 19:43:51 hans Exp $
$NetBSD: patch-bg,v 1.3 2016/04/15 08:47:50 wiz Exp $
--- src/timer/timer_hw.c.orig 2008-10-29 08:42:10.000000000 -0400
--- src/timer/timer_hw.c.orig 2016-03-07 10:09:24.000000000 +0000
+++ src/timer/timer_hw.c
@@ -72,11 +72,14 @@ static int snd_timer_hw_nonblock(snd_tim
@@ -66,11 +66,14 @@ static int snd_timer_hw_nonblock(snd_tim
static int snd_timer_hw_async(snd_timer_t *timer, int sig, pid_t pid)
{
@@ -17,7 +17,7 @@ $NetBSD: patch-bg,v 1.2 2012/02/15 19:43:51 hans Exp $
if ((flags = fcntl(fd, F_GETFL)) < 0) {
SYSERR("F_GETFL failed");
return -errno;
@@ -89,12 +92,22 @@ static int snd_timer_hw_async(snd_timer_
@@ -83,13 +86,21 @@ static int snd_timer_hw_async(snd_timer_
SYSERR("F_SETFL for O_ASYNC failed");
return -errno;
}
@@ -25,18 +25,18 @@ $NetBSD: patch-bg,v 1.2 2012/02/15 19:43:51 hans Exp $
if (sig < 0)
return 0;
+#ifndef __sun
+#ifdef F_SETSIG
#ifdef F_SETSIG
if (fcntl(fd, F_SETSIG, (long)sig) < 0) {
SYSERR("F_SETSIG failed");
return -errno;
}
- }
+ }
+#else
+ if (fcntl(fd, F_SETFL, O_ASYNC) < 0) {
+ SYSERR("F_SETFL failed");
+ return -errno;
+ }
+#endif
+ if (fcntl(fd, F_SETFL, O_ASYNC) < 0) {
+ SYSERR("F_SETFL failed");
+ return -errno;
+ }
+#endif
#endif
if (fcntl(fd, F_SETOWN, (long)pid) < 0) {
SYSERR("F_SETOWN failed");
return -errno;
-14
View File
@@ -1,14 +0,0 @@
$NetBSD: patch-bh,v 1.4 2014/03/25 23:06:07 asau Exp $
--- src/pcm/pcm_meter.c.orig 2008-12-19 00:05:13.000000000 -0500
+++ src/pcm/pcm_meter.c 2008-12-19 00:05:34.000000000 -0500
@@ -27,7 +27,9 @@
*/
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__sun)
#include <byteswap.h>
+#endif
#include <time.h>
#include <pthread.h>
#include <dlfcn.h>
+3 -1
View File
@@ -1,4 +1,6 @@
$NetBSD: patch-bi,v 1.1 2008/12/19 05:14:00 jmcneill Exp $
$NetBSD: patch-bi,v 1.2 2016/04/15 08:47:50 wiz Exp $
For dlopen(), dlclose()...
--- src/pcm/pcm_ladspa.c.orig 2008-12-19 00:06:18.000000000 -0500
+++ src/pcm/pcm_ladspa.c 2008-12-19 00:06:31.000000000 -0500
+20
View File
@@ -0,0 +1,20 @@
$NetBSD: patch-configure.ac,v 1.1 2016/04/15 08:47:50 wiz Exp $
--- configure.ac.orig 2016-02-24 08:33:29.000000000 +0000
+++ configure.ac
@@ -665,6 +671,15 @@ AC_OUTPUT(Makefile doc/Makefile doc/pict
test/Makefile test/lsb/Makefile \
utils/Makefile utils/alsa-lib.spec utils/alsa.pc)
+case $host_os in
+ netbsd*|freebsd*|dragonfly*)
+ HAVE_LIBDL=yes
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LIBDL 1
+_ACEOF
+ ;;
+esac
+
dnl Create asoundlib.h dynamically according to configure options
echo "Creating asoundlib.h..."
cp "$srcdir"/include/asoundlib-head.h include/asoundlib.h
@@ -1,19 +1,19 @@
$NetBSD: patch-include_iatomic.h,v 1.1 2012/08/02 12:52:33 jperkin Exp $
$NetBSD: patch-include_iatomic.h,v 1.2 2016/02/18 15:15:57 wiz Exp $
Use __asm__ and __volatile__
--- include/iatomic.h.orig Thu Aug 2 12:47:59 2012
+++ include/iatomic.h Thu Aug 2 12:49:53 2012
@@ -211,9 +211,9 @@
#define rmb() mb()
#define wmb() __asm__ __volatile__ ("": : :"memory")
#else
--- include/iatomic.h.orig 2015-11-09 07:39:18.000000000 +0000
+++ include/iatomic.h
@@ -9,9 +9,9 @@
#endif
#ifdef __x86_64__
-#define mb() asm volatile("mfence":::"memory")
-#define rmb() asm volatile("lfence":::"memory")
-#define wmb() asm volatile("sfence":::"memory")
+#define mb() __asm__ __volatile__ ("mfence":::"memory")
+#define rmb() __asm__ __volatile__ ("lfence":::"memory")
+#define wmb() __asm__ __volatile__ ("sfence":::"memory")
#define IATOMIC_DEFINED 1
#endif
#undef ATOMIC_SMP_LOCK
@@ -1,32 +0,0 @@
$NetBSD: patch-include_pcm.h,v 1.4 2014/06/09 12:21:07 ryoon Exp $
--- include/pcm.h.orig 2013-07-08 12:31:36.000000000 +0000
+++ include/pcm.h
@@ -579,7 +579,9 @@ int snd_pcm_chmap_print(const snd_pcm_ch
unsigned int snd_pcm_chmap_from_string(const char *str);
snd_pcm_chmap_t *snd_pcm_chmap_parse_string(const char *str);
+/*
//int snd_pcm_mixer_element(snd_pcm_t *pcm, snd_mixer_t *mixer, snd_mixer_elem_t **elem);
+ */
/*
* application helpers - these functions are implemented on top
@@ -1048,10 +1050,17 @@ int snd_pcm_format_width(snd_pcm_format_
int snd_pcm_format_physical_width(snd_pcm_format_t format); /* in bits */
snd_pcm_format_t snd_pcm_build_linear_format(int width, int pwidth, int unsignd, int big_endian);
ssize_t snd_pcm_format_size(snd_pcm_format_t format, size_t samples);
+#ifdef __sun
+uint8_t snd_pcm_format_silence(snd_pcm_format_t format);
+uint16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
+uint32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
+uint64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
+#else
u_int8_t snd_pcm_format_silence(snd_pcm_format_t format);
u_int16_t snd_pcm_format_silence_16(snd_pcm_format_t format);
u_int32_t snd_pcm_format_silence_32(snd_pcm_format_t format);
u_int64_t snd_pcm_format_silence_64(snd_pcm_format_t format);
+#endif
int snd_pcm_format_set_silence(snd_pcm_format_t format, void *buf, unsigned int samples);
snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);
@@ -1,20 +0,0 @@
$NetBSD: patch-include_sound_asound.h,v 1.1 2014/06/09 12:21:07 ryoon Exp $
--- include/sound/asound.h.orig 2013-07-08 12:31:36.000000000 +0000
+++ include/sound/asound.h
@@ -23,8 +23,14 @@
#ifndef _UAPI__SOUND_ASOUND_H
#define _UAPI__SOUND_ASOUND_H
+#if defined(__linux__)
#include <linux/types.h>
-
+#else
+#include <sys/ioctl.h>
+#define __bitwise
+typedef uint32_t __u32;
+typedef int __kernel_pid_t;
+#endif
/*
* protocol version
@@ -1,13 +0,0 @@
$NetBSD: patch-src_compat_hsearch__r.c,v 1.1 2014/03/25 23:06:07 asau Exp $
--- src/compat/hsearch_r.c.orig 2009-12-16 15:18:51.000000000 +0000
+++ src/compat/hsearch_r.c
@@ -18,7 +18,7 @@
Boston, MA 02111-1307, USA. */
#include <errno.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <string.h>
#define __USE_GNU
+4 -51
View File
@@ -1,48 +1,10 @@
$NetBSD: patch-src_conf.c,v 1.3 2014/06/26 20:23:14 asau Exp $
$NetBSD: patch-src_conf.c,v 1.5 2016/04/15 08:47:50 wiz Exp $
* NetBSD has no PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
* SunOS has no versionsort or dirent d_type
* SunOS has no dirent d_type
--- src/conf.c.orig 2013-07-08 12:31:36.000000000 +0000
--- src/conf.c.orig 2015-11-09 07:39:18.000000000 +0000
+++ src/conf.c
@@ -426,9 +426,12 @@ beginning:</P>
#ifndef DOC_HIDDEN
-#ifdef HAVE_LIBPTHREAD
+#if defined(HAVE_LIBPTHREAD) && defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
static pthread_mutex_t snd_config_update_mutex =
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
+#else
+pthread_mutexattr_t attr;
+pthread_mutex_t _mutex;
#endif
struct _snd_config {
@@ -474,12 +477,22 @@ typedef struct {
static inline void snd_config_lock(void)
{
+#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
pthread_mutex_lock(&snd_config_update_mutex);
+#else
+ pthread_mutexattr_init(&attr);
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+ pthread_mutex_init(&_mutex, &attr);
+#endif
}
static inline void snd_config_unlock(void)
{
+#if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
pthread_mutex_unlock(&snd_config_update_mutex);
+#else
+ pthread_mutexattr_destroy(&attr);
+#endif
}
#else
@@ -3376,11 +3389,19 @@ static int snd_config_hooks(snd_config_t
@@ -3419,11 +3419,19 @@ static int snd_config_hooks(snd_config_t
static int config_filename_filter(const struct dirent *dirent)
{
@@ -62,12 +24,3 @@ $NetBSD: patch-src_conf.c,v 1.3 2014/06/26 20:23:14 asau Exp $
return 0;
flen = strlen(dirent->d_name);
@@ -3506,7 +3527,7 @@ int snd_config_hook_load(snd_config_t *r
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
@@ -1,10 +1,10 @@
$NetBSD: patch-src_pcm_pcm__mmap.c,v 1.1 2014/03/25 23:06:07 asau Exp $
$NetBSD: patch-src_pcm_pcm__mmap.c,v 1.2 2016/02/18 15:15:57 wiz Exp $
--- src/pcm/pcm_mmap.c.orig 2009-12-16 15:18:51.000000000 +0000
--- src/pcm/pcm_mmap.c.orig 2015-11-09 07:39:18.000000000 +0000
+++ src/pcm/pcm_mmap.c
@@ -19,7 +19,7 @@
*/
@@ -20,7 +20,7 @@
#include "config.h"
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
+5 -5
View File
@@ -1,10 +1,10 @@
$NetBSD: patch-src_shmarea.c,v 1.1 2014/03/25 23:06:07 asau Exp $
$NetBSD: patch-src_shmarea.c,v 1.2 2016/02/18 15:15:57 wiz Exp $
--- src/shmarea.c.orig 2009-12-16 15:18:51.000000000 +0000
--- src/shmarea.c.orig 2015-11-09 07:39:18.000000000 +0000
+++ src/shmarea.c
@@ -19,7 +19,7 @@
*/
@@ -24,7 +24,7 @@
#ifdef HAVE_SYS_SHM_H
#include <stdio.h>
-#include <malloc.h>
+#include <stdlib.h>
+2 -13
View File
@@ -1,8 +1,6 @@
$NetBSD: patch-src_ucm_parser.c,v 1.3 2014/06/26 20:23:14 asau Exp $
$NetBSD: patch-src_ucm_parser.c,v 1.4 2016/04/15 08:47:50 wiz Exp $
* NetBSD has no versionsort
* FreeBSD doesn't have it either
* SunOS has no versionsort or dirent d_type
* SunOS has no dirent d_type
--- src/ucm/parser.c.orig 2013-07-08 12:31:36.000000000 +0000
+++ src/ucm/parser.c
@@ -24,12 +22,3 @@ $NetBSD: patch-src_ucm_parser.c,v 1.3 2014/06/26 20:23:14 asau Exp $
if (dirent->d_name[0] == '.') {
if (dirent->d_name[1] == '\0')
return 0;
@@ -1254,7 +1262,7 @@ int uc_mgr_scan_master_configs(const cha
"%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