summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJuan Francisco Cantero Hurtado <iam@juanfra.info>2014-05-09 20:37:39 +0200
committerwm4 <wm4@nowhere>2014-05-21 02:23:23 +0200
commit38c8f5ea575233ade4d77ebbf10ee618271fbbaf (patch)
tree8c6e5e6ea055d5b3f744a43a56c0b5cea54809bf /wscript
parentc0641c63fc91652da539c366e044c8748bdcca32 (diff)
downloadmpv-38c8f5ea575233ade4d77ebbf10ee618271fbbaf.tar.bz2
mpv-38c8f5ea575233ade4d77ebbf10ee618271fbbaf.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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/wscript b/wscript
index be900c03f7..f58c4ef931 100644
--- a/wscript
+++ b/wscript
@@ -813,7 +813,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':