Move decision about whether or not to compile osdep/mmap_os2.c to configure.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26350 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-04-08 17:31:25 +00:00
parent ae75174784
commit e2c560a9f6
2 changed files with 3 additions and 3 deletions

2
configure vendored
View File

@ -3054,6 +3054,7 @@ if test "$_mman" = yes ; then
_def_mman='#define HAVE_SYS_MMAN_H 1' _def_mman='#define HAVE_SYS_MMAN_H 1'
else else
_def_mman='#undef HAVE_SYS_MMAN_H' _def_mman='#undef HAVE_SYS_MMAN_H'
os2 && _need_mmap=yes
fi fi
echores "$_mman" echores "$_mman"
@ -7732,6 +7733,7 @@ HAVE_POSIX_SELECT = $_posix_select
NEED_GETTIMEOFDAY = $_need_gettimeofday NEED_GETTIMEOFDAY = $_need_gettimeofday
NEED_GLOB = $_need_glob NEED_GLOB = $_need_glob
NEED_MMAP = $_need_mmap
NEED_SETENV = $_need_setenv NEED_SETENV = $_need_setenv
NEED_SHMEM = $_need_shmem NEED_SHMEM = $_need_shmem
NEED_STRSEP = $_need_strsep NEED_STRSEP = $_need_strsep

View File

@ -7,6 +7,7 @@ SRCS_COMMON-$(MACOSX_FINDER_SUPPORT) += macosx_finder_args.c
SRCS_COMMON-$(NEED_GETTIMEOFDAY) += gettimeofday.c SRCS_COMMON-$(NEED_GETTIMEOFDAY) += gettimeofday.c
SRCS_COMMON-$(NEED_GLOB) += glob-win.c SRCS_COMMON-$(NEED_GLOB) += glob-win.c
SRCS_COMMON-$(NEED_MMAP) += mmap-os2.c
SRCS_COMMON-$(NEED_SETENV) += setenv.c SRCS_COMMON-$(NEED_SETENV) += setenv.c
SRCS_COMMON-$(NEED_SHMEM) += shmem.c SRCS_COMMON-$(NEED_SHMEM) += shmem.c
SRCS_COMMON-$(NEED_STRSEP) += strsep.c SRCS_COMMON-$(NEED_STRSEP) += strsep.c
@ -26,9 +27,6 @@ getch = getch2-win.c
endif endif
ifeq ($(TARGET_OS),OS/2) ifeq ($(TARGET_OS),OS/2)
getch = getch2-os2.c getch = getch2-os2.c
ifneq ($(HAVE_SYS_MMAN_H),yes)
SRCS_COMMON += mmap-os2.c
endif
endif endif
SRCS_COMMON += $(timer) SRCS_COMMON += $(timer)
SRCS_COMMON += $(getch) SRCS_COMMON += $(getch)