[PATCH] mtd-utils: serve_image: use proper POSIX_C_SOURCE value
Kirill Smirnov
kirill.k.smirnov at gmail.com
Wed Sep 30 18:19:35 PDT 2015
struct addrinfo and friends conform to POSIX.1-2001, not earlier.
This patch fixes linking against latest glibc 2.22
Now email formatting and the generated patch should be OK.
Signed-off-by: Kirill Smirnov <kirill.k.smirnov at gmail.com>
---
serve_image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 <time.h>
#include <errno.h>
--
2.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix-2001.patch
Type: text/x-patch
Size: 272 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20151001/a48b1aaa/attachment.bin>
More information about the linux-mtd
mailing list