Page MenuHomeFreeBSD

D11629.id31080.diff
No OneTemporary

D11629.id31080.diff

Index: head/lib/libsysdecode/Makefile
===================================================================
--- head/lib/libsysdecode/Makefile
+++ head/lib/libsysdecode/Makefile
@@ -122,7 +122,7 @@
ioctl.c: .PHONY
.endif
ioctl.c: mkioctls .META
- env CPP="${CPP}" \
+ env CPP="${CPP}" MK_PF="${MK_PF}" \
/bin/sh ${.CURDIR}/mkioctls ${SYSROOT:U${DESTDIR}}${INCLUDEDIR} > ${.TARGET}
beforedepend: ioctl.c tables.h
Index: head/lib/libsysdecode/mkioctls
===================================================================
--- head/lib/libsysdecode/mkioctls
+++ head/lib/libsysdecode/mkioctls
@@ -17,8 +17,14 @@
# XXX should we use an ANSI cpp?
ioctl_includes=$(
cd $includedir
+
+ filter='tee'
+ if [ "${MK_PF}" == "no" ]; then
+ filter='egrep -v (net/pfvar|net/if_pfsync)\.h'
+ fi
+
find -H -s * -name '*.h' | \
- egrep -v '(net/pfvar|net/if_pfsync)\.h' | \
+ $filter | \
xargs egrep -l \
'^#[ ]*define[ ]+[A-Za-z_][A-Za-z0-9_]*[ ]+_IO[^a-z0-9_]' |
awk '{printf("#include <%s>\\n", $1)}'

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 25, 1:18 PM (16 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37237408
Default Alt Text
D11629.id31080.diff (1013 B)

Event Timeline