Compile with _GNU_SOURCE

This commit is contained in:
Kamil Trzcinski 2022-07-08 09:41:43 +02:00
parent bb4bbdc6ea
commit ab7e87d5ef
5 changed files with 5 additions and 6 deletions

View File

@ -70,6 +70,8 @@
"log.h": "c",
"buffer_list.h": "c",
"buffer.h": "c",
"stdbool.h": "c"
"stdbool.h": "c",
"v4l2.h": "c",
"stdlib.h": "c"
}
}

View File

@ -3,7 +3,7 @@ SRC := $(wildcard **/*.c **/*/*.c **/*.cc **/*/*.cc)
HEADERS := $(wildcard **/*.h **/*/*.h **/*.hh **/*/*.hh)
HTML := $(wildcard html/*.js html/*.html)
CFLAGS := -Werror -Wall -g -I$(CURDIR)
CFLAGS := -Werror -Wall -g -I$(CURDIR) -D_GNU_SOURCE
LDLIBS := -lpthread -lstdc++
ifneq (x,x$(shell which ccache))

View File

@ -55,7 +55,7 @@
The commands available on some cameras:<br>
<br>
<ul>
<li><a href="option?autofocus">/option?autofocus</a> trigger auto focus.</li>
<li><a href="option?AfTrigger=1">/option?AfTrigger=1</a> trigger auto focus.</li>
</ul>
</li>
</ul>

View File

@ -1,5 +1,3 @@
#define _GNU_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -1,7 +1,6 @@
#include "opts/log.h"
#include "opts/opts.h"
#define _GNU_SOURCE
#include <string.h>
char *