From patchwork Mon Nov 25 07:36:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sonic Zhang X-Patchwork-Id: 293839 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1FB9D2C0126 for ; Mon, 25 Nov 2013 18:37:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 521314A907; Mon, 25 Nov 2013 08:37:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cNQkP0r1I6sc; Mon, 25 Nov 2013 08:37:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0BBB34A8FA; Mon, 25 Nov 2013 08:37:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6D5F24A8F8 for ; Mon, 25 Nov 2013 08:37:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bMzuFWrw-jof for ; Mon, 25 Nov 2013 08:37:09 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by theia.denx.de (Postfix) with ESMTPS id C5D334A8FD for ; Mon, 25 Nov 2013 08:37:02 +0100 (CET) Received: by mail-pb0-f53.google.com with SMTP id ma3so5109145pbc.40 for ; Sun, 24 Nov 2013 23:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=wuw0iOmAmwvKzr2wBK2aEEi1Bb1Jg8hVj3FgSx/4QWw=; b=duhDs48PNa4HloVHLqAXTbL52HJiGYrTGAvdK2cRu6brrdt8pBfMhMghAoGR2bG9Wg QC2KRL4SeHPINIKuUBONb2qFR7mCtfASuIPcxRuqoBXEyOOA+NZC77EMOIUzHLPpDhT9 VbBO3nvc6F5b3+lZyi/03X4YwSBZ5pFZrv2aw+Ac3HB0NnZ+B78WWATAxPLt7fAaDPOZ dhu+t3mibfGAXhIZWMr1h+JSL9K3Iw78DWw2k+ry+3Cbv6N016EKh6rTnhBTJCQa12nT 4c3t5YA/K35z3yf3pZKqYi+/SbTLW0cFzqM5y8sBRGtI7fuhATqoIj3p9wvvzBv9yGmh 7WAQ== X-Received: by 10.68.49.232 with SMTP id x8mr929158pbn.167.1385365019537; Sun, 24 Nov 2013 23:36:59 -0800 (PST) Received: from localhost.localdomain ([114.91.244.100]) by mx.google.com with ESMTPSA id de1sm71156748pbc.7.2013.11.24.23.36.55 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Nov 2013 23:36:58 -0800 (PST) From: Sonic Zhang To: Jaroslav Kysela , alsa-devel@alsa-project.org Date: Mon, 25 Nov 2013 15:36:32 +0800 Message-Id: <1385364992-24653-1-git-send-email-sonic.adi@gmail.com> X-Mailer: git-send-email 1.7.9.5 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] alsa-lib: dlmisc: Add a fake dl lib head file when dl lib is not supported by the toolchain. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: sonic The FLAT GNU toolchain doesn't include the dlfcn.h header file. Signed-off-by: Sonic Zhang --- include/dlmisc.h | 24 ++++++++++++++++++++++++ modules/mixer/simple/sbasedl.c | 4 ++++ src/mixer/simple_abst.c | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 include/dlmisc.h diff --git a/include/dlmisc.h b/include/dlmisc.h new file mode 100644 index 0000000..3be8d43 --- /dev/null +++ b/include/dlmisc.h @@ -0,0 +1,24 @@ +/* + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef __ALSA_DLMISC_H +#define __ALSA_DLMISC_H + +#define RTLD_NOW 0x00002 +#define RTLD_GLOBAL 0x00100 + +#endif diff --git a/modules/mixer/simple/sbasedl.c b/modules/mixer/simple/sbasedl.c index 494802f..511bebf 100644 --- a/modules/mixer/simple/sbasedl.c +++ b/modules/mixer/simple/sbasedl.c @@ -27,7 +27,11 @@ #include #include #include +#ifdef HAVE_LIBDL #include +#else +#include +#endif #include "config.h" #include "asoundlib.h" #include "mixer_abst.h" diff --git a/src/mixer/simple_abst.c b/src/mixer/simple_abst.c index 9e9aaf5..dd951fe 100644 --- a/src/mixer/simple_abst.c +++ b/src/mixer/simple_abst.c @@ -34,7 +34,11 @@ #include #include #include +#ifdef HAVE_LIBDL #include +#else +#include +#endif #include "config.h" #include "asoundlib.h" #include "mixer_simple.h"