mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
build: Remove unused functions
fgetpos, fsetpos, mmap, posix_memalign. None of these are used anywhere in the codebase.
This commit is contained in:
parent
97f39cae63
commit
77d2774f1b
3 changed files with 1 additions and 22 deletions
|
@ -132,15 +132,9 @@
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
#mesondefine HAVE_DLFCN_H
|
#mesondefine HAVE_DLFCN_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `fgetpos' function. */
|
|
||||||
#mesondefine HAVE_FGETPOS
|
|
||||||
|
|
||||||
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
|
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
|
||||||
#mesondefine HAVE_FSEEKO
|
#mesondefine HAVE_FSEEKO
|
||||||
|
|
||||||
/* Define to 1 if you have the `fsetpos' function. */
|
|
||||||
#mesondefine HAVE_FSETPOS
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `ftello' function. */
|
/* Define to 1 if you have the `ftello' function. */
|
||||||
#mesondefine HAVE_FTELLO
|
#mesondefine HAVE_FTELLO
|
||||||
|
|
||||||
|
@ -205,9 +199,6 @@
|
||||||
/* Define to 1 if you have the <poll.h> header file. */
|
/* Define to 1 if you have the <poll.h> header file. */
|
||||||
#mesondefine HAVE_POLL_H
|
#mesondefine HAVE_POLL_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `posix_memalign' function. */
|
|
||||||
#mesondefine HAVE_POSIX_MEMALIGN
|
|
||||||
|
|
||||||
/* Have posix timers */
|
/* Have posix timers */
|
||||||
#mesondefine HAVE_POSIX_TIMERS
|
#mesondefine HAVE_POSIX_TIMERS
|
||||||
|
|
||||||
|
|
|
@ -658,12 +658,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
[broken_poll="no (cross compiling)"])
|
[broken_poll="no (cross compiling)"])
|
||||||
AC_MSG_RESULT($broken_poll)
|
AC_MSG_RESULT($broken_poll)
|
||||||
|
|
||||||
dnl check for mmap()
|
dnl check for getpagesize()
|
||||||
AC_FUNC_MMAP
|
|
||||||
AM_CONDITIONAL(HAVE_MMAP, test "x$ac_cv_func_mmap_fixed_mapped" = "xyes")
|
|
||||||
|
|
||||||
dnl check for posix_memalign(), getpagesize()
|
|
||||||
AC_CHECK_FUNCS([posix_memalign])
|
|
||||||
AC_CHECK_FUNCS([getpagesize])
|
AC_CHECK_FUNCS([getpagesize])
|
||||||
|
|
||||||
dnl Check for POSIX timers
|
dnl Check for POSIX timers
|
||||||
|
|
|
@ -147,8 +147,6 @@ check_functions = [
|
||||||
'getrusage',
|
'getrusage',
|
||||||
'fseeko',
|
'fseeko',
|
||||||
'ftello',
|
'ftello',
|
||||||
'fsetpos',
|
|
||||||
'fgetpos',
|
|
||||||
'poll',
|
'poll',
|
||||||
'pselect',
|
'pselect',
|
||||||
'getpagesize',
|
'getpagesize',
|
||||||
|
@ -167,17 +165,12 @@ foreach f : check_functions
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
cdata.set('HAVE_MMAP', 1)
|
|
||||||
if cc.has_function('localtime_r', prefix : '#include<time.h>')
|
if cc.has_function('localtime_r', prefix : '#include<time.h>')
|
||||||
cdata.set('HAVE_LOCALTIME_R', 1)
|
cdata.set('HAVE_LOCALTIME_R', 1)
|
||||||
# Needed by libcheck
|
# Needed by libcheck
|
||||||
cdata.set('HAVE_DECL_LOCALTIME_R', 1)
|
cdata.set('HAVE_DECL_LOCALTIME_R', 1)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if cc.has_function('posix_memalign', prefix : '#include<stdlib.h>')
|
|
||||||
cdata.set('HAVE_POSIX_MEMALIGN', 1)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# We only want to use the __declspec(dllexport/import) dance in GST_EXPORT when
|
# We only want to use the __declspec(dllexport/import) dance in GST_EXPORT when
|
||||||
# building with MSVC
|
# building with MSVC
|
||||||
if cc.get_id() == 'msvc'
|
if cc.get_id() == 'msvc'
|
||||||
|
|
Loading…
Reference in a new issue