opnsense-ports/audio/xmms2/files/patch-src-plugins-file-wscript
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

19 lines
749 B
Text

--- src/plugins/file/wscript.orig 2011-10-20 21:26:08.000000000 +0200
+++ src/plugins/file/wscript 2012-05-04 23:01:58.940585349 +0200
@@ -1,7 +1,7 @@
from waftools.plugin import plugin
def plugin_build(bld, obj):
- if bld.env.HAVE_FSTATAT and bld.env.HAVE_DIRFD:
+ if bld.env.HAVE_FSTATAT:
obj.source.append('browse/fstatat.c')
else:
obj.source.append('browse/gdir.c')
@@ -9,7 +9,6 @@
def plugin_configure(conf):
conf.check_cc(function_name='fstatat', header_name=['fcntl.h','sys/stat.h'],
defines=['_ATFILE_SOURCE=1'])
- conf.check_cc(function_name='dirfd', header_name=['dirent.h','sys/types.h'])
configure, build = plugin("file",
configure=plugin_configure, build=plugin_build,