Compile with _GNU_SOURCE
This commit is contained in:
parent
bb4bbdc6ea
commit
ab7e87d5ef
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -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"
|
||||
}
|
||||
}
|
||||
|
2
Makefile
2
Makefile
@ -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))
|
||||
|
@ -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>
|
||||
|
@ -1,5 +1,3 @@
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include "opts/log.h"
|
||||
#include "opts/opts.h"
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <string.h>
|
||||
|
||||
char *
|
||||
|
Loading…
x
Reference in New Issue
Block a user