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:
parent
08a7cdbfdd
commit
9ace4f1f49
16
configure
vendored
16
configure
vendored
@ -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
|
||||
|
@ -1,4 +0,0 @@
|
||||
|
||||
// fallback if the user doesn't have inttypes.h (libc5 systems)
|
||||
|
||||
#include <sys/bitypes.h>
|
Loading…
Reference in New Issue
Block a user