Skip to contentSkip to conversation

mtd-utils: serve_image: use proper POSIX_C_SOURCE value

PATCH In review Kirill Smirnov 2 participants 2 messages 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

Now email formatting and the generated patch should be OK.

---
serve_image.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
serve_image.c +0 -0
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>

Signature · 1 line
2.5.1
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>
#1 lore raw
Quoted 4 lines · Kirill Smirnov

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.

Normally we don't include lines like this ^^ in the commit message.

Quoted 2 lines

---

But you can include comments like that (that don't belong in the commit message) here, below the '---'.

Also, the extra attachment is not too much of a problem, but try to avoid it in the future.

Anyway, patch looks reasonable to me. Applied to mtd-utils.git. Thanks!

Brian

Quoted 16 lines

serve_image.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
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>
Signature · 1 line
2.5.1