Hi,

The compilation of libblueray-1.0.2 failed on FreeBSD 11.1 on file src/util/time.c:58.

The /usr/include/sys/time.h of FreeBSD contains:
#if __XSI_VISIBLE
int getitimer(int, struct itimerval *);
int gettimeofday(struct timeval *, struct timezone *);
#endif

The attached patch fix the problem (and implies to rerun autoconf).
$NetBSD$

--- configure.ac.orig	2017-12-03 15:25:55.000000000 +0000
+++ configure.ac
@@ -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}"
     ;;
_______________________________________________
libbluray-devel mailing list
libbluray-devel@videolan.org
https://mailman.videolan.org/listinfo/libbluray-devel

Reply via email to