Vendored from: https://github.com/skynettx/raptor
Upstream commit: 0019c5dd8e3cf283086a0ab7538dbceb4dc4862c
License: GPLv2 or later
