From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZhR8V-00034l-4m for linux-mtd@lists.infradead.org; Wed, 30 Sep 2015 23:50:11 +0000 Received: by laer8 with SMTP id r8so64628082lae.2 for ; Wed, 30 Sep 2015 16:49:48 -0700 (PDT) Received: from [192.168.0.100] ([217.71.235.210]) by smtp.googlemail.com with ESMTPSA id f14sm340572lfb.25.2015.09.30.16.49.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Sep 2015 16:49:47 -0700 (PDT) To: linux-mtd@lists.infradead.org From: Kirill Smirnov Subject: [PATCH] mtd-utils: serve_image: use proper POSIX_C_SOURCE value Message-ID: <560C7518.4050004@gmail.com> Date: Thu, 1 Oct 2015 02:49:44 +0300 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080601040400080607060902" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --------------080601040400080607060902 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit struct addrinfo and friends conform to POSIX.1-2001, not earlier. This patch fixes linking against latest glibc 2.22 --------------080601040400080607060902 Content-Type: text/x-patch; name="posix-2001.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="posix-2001.patch" diff --git a/serve_image.c b/serve_image.c index d3794ec..cbcf3b7 100644 --- a/serve_image.c +++ b/serve_image.c @@ -1,5 +1,5 @@ #define PROGRAM_NAME "serve_image" -#define _POSIX_C_SOURCE 199309 +#define _POSIX_C_SOURCE 200112L #include #include --------------080601040400080607060902--