From 90b30b726c599d9f4ac8f25aadb0fdf24554e2a9 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Sat, 6 May 2006 00:14:17 +0000 Subject: Add ~x86-fbsd keyword and a patch to fix mode_t vaarg passing. (Portage version: 2.1_pre10-r2) --- media-sound/esound/files/esound-0.2.36-mode_t.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 media-sound/esound/files/esound-0.2.36-mode_t.patch (limited to 'media-sound/esound/files/esound-0.2.36-mode_t.patch') diff --git a/media-sound/esound/files/esound-0.2.36-mode_t.patch b/media-sound/esound/files/esound-0.2.36-mode_t.patch new file mode 100644 index 000000000000..b7b610e71de2 --- /dev/null +++ b/media-sound/esound/files/esound-0.2.36-mode_t.patch @@ -0,0 +1,16 @@ +Index: esound-0.2.36/esddsp.c +=================================================================== +--- esound-0.2.36.orig/esddsp.c ++++ esound-0.2.36/esddsp.c +@@ -227,7 +227,10 @@ open (const char *pathname, int flags, . + dsp_init (); + + va_start (args, flags); +- mode = va_arg (args, mode_t); ++ if ( sizeof(mode_t) < sizeof(int) ) ++ mode = va_arg (args, int); ++ else ++ mode = va_arg (args, mode_t); + va_end (args); + + if (!strcmp (pathname, "/dev/dsp")) -- cgit v1.2.3-65-gdbad