#!/bin/bash

set -ex

# Upstream patch that has not been included in a release yet:
# https://git.netfilter.org/libnetfilter_cthelper/commit/?id=f58c5b09fb59baf07c942d373fc4d522b27e73c6
/usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .clang1 --fuzz=0 < /usr/lib/rpm/clang/libnetfilter_cthelper-0001-Use-__EXPORTED-rather-than-EXPORT_SYMBOL.patch
