From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2506 Path: news.gmane.org!not-for-mail From: Strake Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] include/stdio.h: declare *asprintf with _BSD_SOURCE Date: Fri, 28 Dec 2012 09:23:17 -0500 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1356704613 10622 80.91.229.3 (28 Dec 2012 14:23:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2012 14:23:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2507-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 28 15:23:48 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Toaqf-0007t7-17 for gllmg-musl@plane.gmane.org; Fri, 28 Dec 2012 15:23:45 +0100 Original-Received: (qmail 32556 invoked by uid 550); 28 Dec 2012 14:23:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 32545 invoked from network); 28 Dec 2012 14:23:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=zQTfKJZnlPxAH9+6DBKtfQ6cM6ur5V0MzYQgNj8X/IU=; b=I+EntPqB3KqqlLawn9ZCj2SQkGjbn5j5mJk50oE5OshEeBdoSYQclwFVv4HQ7T6W6Z AcIsBWSc/TDlnKmddjecIn0OahAwAj1kxHStiUzexey+uH6TGjVKND+RZuoqtDTm+0mO +dsM19YWcCGtFHDmTS7Hmz+0ZPOmWROALQPNqNs/Bw9L7yPrP6qSN2itaCVbFj7CasQu 77O56tUcw9mu3SQANhi5hfnCEU8VHi2tktDzC+NEW6a4eyqfwb/9CCElpnBApUWJNNzC zy7lUQeX1l30MMlZOZ4F1WgIbYDRgEKmnF/7Kj7zxc9Ey/OoKRfOkpEItN0d0q2dHgAo +W3g== Xref: news.gmane.org gmane.linux.lib.musl.general:2506 Archived-At: *asprintf is indeed declared in BSD stdio.h, so do the same in musl. commit 389e354a13ee040a9a413e61639be6d68ff1bc03 Author: strake Date: Fri Dec 28 09:20:13 2012 -0500 include/stdio.h: declare *asprintf with _BSD_SOURCE diff --git a/include/stdio.h b/include/stdio.h index 6e8e645..79b2c0f 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -177,9 +177,12 @@ int putw(int, FILE *); char *fgetln(FILE *, size_t *); #endif -#ifdef _GNU_SOURCE +#if defined _GNU_SOURCE || defined _BSD_SOURCE int asprintf(char **, const char *, ...); int vasprintf(char **, const char *, va_list); +#endif + +#ifdef _GNU_SOURCE char *fgets_unlocked(char *, int, FILE *); int fputs_unlocked(const char *, FILE *); #endif