summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-06-27 15:51:39 +0000
committerjperkin <jperkin@pkgsrc.org>2017-06-27 15:51:39 +0000
commitb5a5fcf34c234f47502e236b066ebfe91e81ae0f (patch)
tree7280f0c1fc6679e6a632818cdd3117a6369d23d9
parent8f16b867077e859505ebe5d92f5c24c55b306ce4 (diff)
downloadpkgsrc-b5a5fcf34c234f47502e236b066ebfe91e81ae0f.tar.gz
Fix build on SunOS (no dirent->d_type).
-rw-r--r--audio/alsa-lib/distinfo3
-rw-r--r--audio/alsa-lib/patches/patch-src_ucm_parser.c20
2 files changed, 22 insertions, 1 deletions
diff --git a/audio/alsa-lib/distinfo b/audio/alsa-lib/distinfo
index bb9fb6fd459..a451a4c57be 100644
--- a/audio/alsa-lib/distinfo
+++ b/audio/alsa-lib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2017/06/19 20:46:31 wiz Exp $
+$NetBSD: distinfo,v 1.28 2017/06/27 15:51:39 jperkin Exp $
SHA1 (alsa-lib-1.1.4.1.tar.bz2) = 628634afbdc19054fca26d714aa6c2f1e41e465d
RMD160 (alsa-lib-1.1.4.1.tar.bz2) = 703e99f22a6b399fe32419a2ccc95b9b6292db10
@@ -21,3 +21,4 @@ SHA1 (patch-src_control_control__hw.c) = 07cfe3abe586b32f6b989403cd162599da07e86
SHA1 (patch-src_pcm_pcm__mmap.c) = 2d0f05aa53b30cef1ec083aa4f5d559d0a679058
SHA1 (patch-src_seq_seq__midi__event.c) = 2a5de492d6ca19a0f0c564e8f5a065e5fc57ea5c
SHA1 (patch-src_shmarea.c) = d6d0876ae7911ff16138bb82a3b1c79e795218cf
+SHA1 (patch-src_ucm_parser.c) = 6682d702c5180ecddd1c6c8ecffe6064986ed8b1
diff --git a/audio/alsa-lib/patches/patch-src_ucm_parser.c b/audio/alsa-lib/patches/patch-src_ucm_parser.c
new file mode 100644
index 00000000000..d15e7446e9a
--- /dev/null
+++ b/audio/alsa-lib/patches/patch-src_ucm_parser.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_ucm_parser.c,v 1.7 2017/06/27 15:51:39 jperkin Exp $
+
+* SunOS has no dirent d_type
+
+--- src/ucm/parser.c.orig 2017-06-01 06:27:36.000000000 +0000
++++ src/ucm/parser.c
+@@ -1476,7 +1476,13 @@ static int filename_filter(const struct
+ {
+ if (dirent == NULL)
+ return 0;
++#ifdef __sun
++ struct stat s;
++ stat(dirent->d_name, &s);
++ if (s.st_mode & S_IFDIR) {
++#else
+ if (dirent->d_type == DT_DIR) {
++#endif
+ if (dirent->d_name[0] == '.') {
+ if (dirent->d_name[1] == '\0')
+ return 0;