summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Francisco Cantero Hurtado <iam@juanfra.info>2014-05-09 20:37:39 +0200
committerwm4 <wm4@nowhere>2014-05-24 16:44:40 +0200
commita2259b3fd318204a862e2442afee1c78da54c913 (patch)
tree748069ec0721669214278671a3a04eca8a44464a
parentaeeb7a92f221901badf45e76f1b70b253c979695 (diff)
downloadmpv-a2259b3fd318204a862e2442afee1c78da54c913.tar.bz2
mpv-a2259b3fd318204a862e2442afee1c78da54c913.tar.xz
Fix the build on OpenBSD and FreeBSD
Without this change, the compiler uses by default the "talloc.h" file installed by the package libtalloc within /usr/local/include. Found and tested on OpenBSD but FreeBSD has the same patch on its ports tree.
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index 59bde8b703..7bc3a7ca25 100644
--- a/wscript
+++ b/wscript
@@ -818,7 +818,7 @@ def configure(ctx):
ctx.load('detections.devices')
if ctx.env.DEST_OS in ('freebsd', 'openbsd'):
- ctx.env.CFLAGS += ['-I/usr/local/include']
+ ctx.env.CFLAGS += ['-I.', '-I..', '-I/usr/local/include']
ctx.env.LINKFLAGS += ['-L/usr/local/lib']
if ctx.env.DEST_OS == 'netbsd':