From patchwork Sun Apr 6 09:29:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 337249 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id F20881400C0 for ; Sun, 6 Apr 2014 19:29:36 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 4BA1F89BF9; Sun, 6 Apr 2014 09:29:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J64-UyWbZn7a; Sun, 6 Apr 2014 09:29:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D12E88A10B; Sun, 6 Apr 2014 09:29:35 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BCF2A1C22FB for ; Sun, 6 Apr 2014 09:29:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B96298C0F2 for ; Sun, 6 Apr 2014 09:29:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qBLqN7e7T2uS for ; Sun, 6 Apr 2014 09:29:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by whitealder.osuosl.org (Postfix) with ESMTP id B6FF68C06B for ; Sun, 6 Apr 2014 09:29:30 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp5-g21.free.fr (Postfix) with ESMTP id 12114D48142; Sun, 6 Apr 2014 11:29:25 +0200 (CEST) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 6 Apr 2014 11:29:13 +0200 Message-Id: <1396776553-7064-2-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1396776553-7064-1-git-send-email-romain.naour@openwide.fr> References: <1396776553-7064-1-git-send-email-romain.naour@openwide.fr> Subject: [Buildroot] [PATCH 2/2] util-linux: define mkostemp for uClibc X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net uclibc does not implement mkostemp GNU extension Signed-off-by: Romain Naour --- ...util-linux-004-define-mkostemp-for-uClibc.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/util-linux/util-linux-004-define-mkostemp-for-uClibc.patch diff --git a/package/util-linux/util-linux-004-define-mkostemp-for-uClibc.patch b/package/util-linux/util-linux-004-define-mkostemp-for-uClibc.patch new file mode 100644 index 0000000..7b49d37 --- /dev/null +++ b/package/util-linux/util-linux-004-define-mkostemp-for-uClibc.patch @@ -0,0 +1,29 @@ +From d339af8fdc4b28175d6986d870f6735a9c2e90a3 Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Sun, 6 Apr 2014 01:48:58 +0200 +Subject: [PATCH 1/1] c.h: define mkostemp for uClibc + +uclibc does not implement mkostemp GNU extension + +Signed-off-by: Romain Naour +--- + include/c.h | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/include/c.h b/include/c.h +index 4a9bf3d..3ba51c1 100644 +--- a/include/c.h ++++ b/include/c.h +@@ -300,4 +300,9 @@ static inline int usleep(useconds_t usec) + # define SEEK_HOLE 4 + #endif + ++#ifdef __UCLIBC__ ++/* uclibc does not implement mkostemp GNU extension */ ++#define mkostemp(x,y) mkstemp(x) ++#endif ++ + #endif /* UTIL_LINUX_C_H */ +-- +1.9.0 +