1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-01 20:32:13 +00:00

configure: don't check for inttypes.h, it always exists

The presence of inttypes.h is guaranteed by POSIX. We don't need to
check for it. We don't need to provide a compatibility header either.

Apparently libc5 systems didn't provide inttypes.h. libc5 is ancient,
unmaintained, and not used by modern Linux systems.
This commit is contained in:
wm4 2012-11-30 17:35:07 +01:00
parent 08a7cdbfdd
commit 9ace4f1f49
2 changed files with 0 additions and 20 deletions

16
configure vendored
View File

@ -1428,22 +1428,6 @@ fi
echores "$_gethostbyname2"
echocheck "inttypes.h (required)"
_inttypes=no
header_check inttypes.h && _inttypes=yes
echores "$_inttypes"
if test "$_inttypes" = no ; then
echocheck "sys/bitypes.h (inttypes.h predecessor)"
header_check sys/bitypes.h && _inttypes=yes
if test "$_inttypes" = yes ; then
die "You don't have inttypes.h, but sys/bitypes.h is present. Please copy etc/inttypes.h into the include path, and re-run configure."
else
die "Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed."
fi
fi
echocheck "mman.h"
_mman=no
statement_check sys/mman.h 'mmap(0, 0, 0, 0, 0, 0)' && _mman=yes

View File

@ -1,4 +0,0 @@
// fallback if the user doesn't have inttypes.h (libc5 systems)
#include <sys/bitypes.h>