(common-generated): Add s-proto-bp.d.
* sysdeps/unix/make-syscalls.sh: Use s-proto-bp.d for dependencies
of bp thunks.
* sysdeps/unix/s-proto-bp.S: New file.
* sysdeps/generic/bp-thunks.h: Don't include <sys/vm86.h> here.
Use <io/sys/sendfile.h> instead of <sys/sendfile.h>.
* sysdeps/unix/sysv/linux/i386/bp-thunks.h: New file.
#include <sys/quota.h>
#include <sys/resource.h>
#include <sys/select.h>
-#include <sys/sendfile.h>
+#include <io/sys/sendfile.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/times.h>
#include <sys/timex.h>
#include <sys/utsname.h>
-#include <sys/vm86.h>
#include <sys/wait.h>
#endif /* _bpthunks_h_ */
# These deps use file names relative to a subdir, so don't
# include them in the parent directory.
-include $(common-objpfx)s-proto.d
+-include $(common-objpfx)s-proto-bp.d
-include $(common-objpfx)s-proto-cancel.d
endif
endif
# Don't try to use compat.h in the db2 subdir
$(subst -include ./compat.h,,$(+make-deps))
-common-generated += s-proto.d s-proto-cancel.d
+common-generated += s-proto.d s-proto-bp.d s-proto-cancel.d
postclean-generated += sysd-syscalls
endif
# generate makefile envelope & rule head
echo "ifeq (,\$(filter $file,\$(bp-thunks)))"
echo "bp-thunks += $file"
- echo "\$(objpfx)\$(bppfx)$file.ob: \$(common-objpfx)s-proto$cancellable.d"
+ echo "\$(objpfx)\$(bppfx)$file.ob: \$(common-objpfx)s-proto-bp.d"
# generate macro head
echo " (echo '#define $callname(`echo $arglist | \
--- /dev/null
+/* This file exists just to have its dependencies determined.
+ Those dependencies are then used for the bp thunk objects. */
+
+#include <bp-thunks.h>
--- /dev/null
+#include <sysdeps/generic/bp-thunks.h>
+
+#include <sys/vm86.h>