Commit 6efb37a1 authored by Paulo Vitor Magacho da Silva's avatar Paulo Vitor Magacho da Silva Committed by Jean-Baptiste Kempf

Fix compile issue with NANF in Darwin.

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 4fb8f3bb
......@@ -363,10 +363,17 @@ fi
# ANDROID NDK FIXUP (BLAME GOOGLE)
config_undef ()
{
previous_change=`stat -c "%y" config.h`
sed -i 's,#define '$1' 1,/\* #undef '$1' \*/,' config.h
# don't change modified date in order to don't trigger a full build
touch -d "$previous_change" config.h
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
previous_change=`stat -f "%Sm" -t "%y%m%d%H%M.%S" config.h`
sed -i '' 's,#define '$1' 1,/\* #undef '$1' \*/,' config.h
touch -t "$previous_change" config.h
else
previous_change=`stat -c "%y" config.h`
sed -i 's,#define '$1' 1,/\* #undef '$1' \*/,' config.h
# don't change modified date in order to don't trigger a full build
touch -d "$previous_change" config.h
fi
}
# if config dependencies change, ./config.status
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment