[libbluray-devel] NetBSD: define _NETBSD_SOURCE
hpi1
git at videolan.org
Fri Apr 10 08:47:46 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Apr 10 09:43:44 2015 +0300| [37f9b71f9cbde887e40da2f98ba4792ee7fff3e8] | committer: hpi1
NetBSD: define _NETBSD_SOURCE
Required for fseeko/ftello in stdio.h and pread in unistd.h.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=37f9b71f9cbde887e40da2f98ba4792ee7fff3e8
---
configure.ac | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure.ac b/configure.ac
index 9a33673..df1fdaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,10 @@ case "${host_os}" in
*darwin*)
SYS=darwin
;;
+ netbsd*)
+ SYS=netbsd
+ CFLAGS="${CFLAGS} -D_NETBSD_SOURCE"
+ ;;
*)
SYS="${host_os}"
;;
More information about the libbluray-devel
mailing list