Commit ceccd357 authored by Frédéric Fauberteau's avatar Frédéric Fauberteau Committed by Jean-Baptiste Kempf

Fix compilation error on FreeBSD

The compilation failed on FreeBSD 11.1 on file
src/util/time.c:58.

The /usr/include/sys/time.h of FreeBSD contains:
int getitimer(int, struct itimerval *);
int gettimeofday(struct timeval *, struct timezone *);
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6021ff97
......@@ -51,6 +51,10 @@ case "${host_os}" in
SYS=netbsd
CFLAGS="${CFLAGS} -D_NETBSD_SOURCE"
;;
freebsd*)
SYS=freebsd
CFLAGS="${CFLAGS} -D_XOPEN_SOURCE=700"
;;
*)
SYS="${host_os}"
;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment