mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 04:36:22 +00:00
scripts/specialize-patch: Handle _COMPAT_LINUX_MM_H correctly
Fixes: 5930b4db71 ("scst: Fix the MOFED build")
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9183 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -235,6 +235,7 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
gsub("MOFED_MINOR", MOFED_MINOR, stmnt)
|
||||
}
|
||||
|
||||
gsub("defined\\(_COMPAT_LINUX_MM_H\\)", "0", stmnt)
|
||||
gsub("defined\\(UEK_KABI_RENAME\\)", "0", stmnt)
|
||||
|
||||
if (SCST_IO_CONTEXT != "")
|
||||
@@ -435,6 +436,7 @@ function handle_if(evaluated)
|
||||
|| $0 ~ "RHEL_RELEASE_CODE" \
|
||||
|| $0 ~ "SOCK_RECVMSG_HAS_FOUR_ARGS" \
|
||||
|| $0 ~ "UEK_KABI_RENAME" \
|
||||
|| $0 ~ "_COMPAT_LINUX_MM_H" \
|
||||
|| $0 ~ "USE_PRE_440_WR_STRUCTURE" \
|
||||
|| generating_upstream_patch_defined \
|
||||
&& $0 ~ "GENERATING_UPSTREAM_PATCH" \
|
||||
|
||||
Reference in New Issue
Block a user