summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-21 14:58:42 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-21 14:58:42 +0200
commite8d385f17607bbe86204251062039690dfc3979a (patch)
tree53d7c4fe42b7e7ab2bbe3e851f584816fd360030
parent492da4a57e3ceac30709a9f932a3552eef2d2898 (diff)
Move _GNU_SOURCE declaration further to the top, so recursive inclusion of stdio does not ignore the macro
-rw-r--r--ot_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_http.c b/ot_http.c
index af3f210..5c622e2 100644
--- a/ot_http.c
+++ b/ot_http.c
@@ -4,9 +4,9 @@
4 $id$ */ 4 $id$ */
5 5
6/* System */ 6/* System */
7#define _GNU_SOURCE
7#include <arpa/inet.h> 8#include <arpa/inet.h>
8#include <pthread.h> 9#include <pthread.h>
9#define _GNU_SOURCE
10#include <stdio.h> 10#include <stdio.h>
11#include <stdlib.h> 11#include <stdlib.h>
12#include <string.h> 12#include <string.h>