This fix actually removes traces of the libc _LARGEFILE64_SOURCE
transitional API.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
# Large file support for Solaris and Linux:
add_definitions(-DHAVE_CONFIG_H)
add_definitions(-D__LIBVLC__)
# Large file support for Solaris and Linux:
-add_definitions(-D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE)
+add_definitions(-D_FILE_OFFSET_BITS=64 -D__USE_UNIX98)
# Thread safety:
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
# Thread safety:
add_definitions(-D_REENTRANT -D_THREAD_SAFE)
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) && make && make install)
else
ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) && make && make install)
else
- (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -Dlseek64=lseek -Doff64_t=off_t" && make && make install)
+ (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --enable-static --prefix=$(PREFIX) CFLAGS="$(CFLAGS)" && make && make install)
endif
$(INSTALL_NAME)
touch $@
endif
$(INSTALL_NAME)
touch $@
-D__PLUGIN__ \
-D_FILE_OFFSET_BITS=64 \
-D__USE_UNIX98 \
-D__PLUGIN__ \
-D_FILE_OFFSET_BITS=64 \
-D__USE_UNIX98 \
- -D_LARGEFILE64_SOURCE \
@DEFS_BIGENDIAN@ \
-D_REENTRANT \
-D_THREAD_SAFE
@DEFS_BIGENDIAN@ \
-D_REENTRANT \
-D_THREAD_SAFE
#
# On Linux and Solaris, activate 64-bit off_t (by default under BSD)
#
#
# On Linux and Solaris, activate 64-bit off_t (by default under BSD)
#
-cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE"
+cppflags="${cppflags} -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE"
#
# Various additional defines
#
# Various additional defines