Skip to contentSkip to conversation

mtd-utils: serve_image: use proper POSIX_C_SOURCE value

PATCH In review Kirill Smirnov 2 participants 3 messages Sep 30, 2015 – Oct 1, 2015 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd-utils: serve_image: use proper POSIX_C_SOURCE value

struct addrinfo and friends conform to POSIX.1-2001, not earlier. This patch fixes linking against latest glibc 2.22

serve_image.c +1 -1
index d3794ec..cbcf3b7 100644
@@ -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 lore raw
Quoted 9 lines · Brian Norris
Quoted 2 lines · Kirill Smirnov

struct addrinfo and friends conform to POSIX.1-2001, not earlier. This patch fixes linking against latest glibc 2.22

Please include your 'Signed-off-by', and use inline patches, not attachments. For reference, see the Linux patch submission guidelines:

https://www.kernel.org/doc/Documentation/SubmittingPatches

I've resent the patch. I'm sorry, while re-formatting mail I forgot to remove attachment, so it has been shipped along with the proper inline patch. Is it OK?