Navigation Menu

Skip to content

Commit

Permalink
1.0.9.27: Fix large file support for MIPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiemo Seufer committed Sep 2, 2007
1 parent 6d3a964 commit b2f01c8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
6 changes: 4 additions & 2 deletions make-config.sh
Expand Up @@ -166,9 +166,11 @@ case "$sbcl_os" in

# If you add other platforms here, don't forget to edit
# src/runtime/Config.foo-linux too.
if [ $sbcl_arch = "x86" ]; then
case "$sbcl_arch" in
x86 | mips)
printf ' :largefile' >> $ltf
fi
;;
esac

if [ $sbcl_arch = "x86-64" ]; then
link_or_copy Config.x86_64-linux Config
Expand Down
4 changes: 2 additions & 2 deletions src/code/unix.lisp
Expand Up @@ -660,15 +660,15 @@ SYSCALL-FORM. Repeat evaluation of SYSCALL-FORM if it is interrupted."
(struct wrapped_stat
(st-dev #!-(or mips largefile) unsigned-int
#!+mips unsigned-long
#!+largefile dev-t)
#!+largefile #!-mips dev-t)
(st-ino ino-t)
(st-mode mode-t)
(st-nlink nlink-t)
(st-uid uid-t)
(st-gid gid-t)
(st-rdev #!-(or mips largefile) unsigned-int
#!+mips unsigned-long
#!+largefile dev-t)
#!+largefile #!-mips dev-t)
(st-size #!-(or darwin mips largefile) unsigned-int
#!+(or darwin mips largefile) off-t)
#!+(and darwin)
Expand Down
8 changes: 8 additions & 0 deletions src/runtime/Config.mips-linux
Expand Up @@ -18,6 +18,14 @@ ARCH_SRC = mips-arch.c
OS_SRC = linux-os.c mips-linux-os.c
OS_LIBS = -ldl

ifdef LISP_FEATURE_LARGEFILE
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
endif

ifdef LISP_FEATURE_SB_THREAD
OS_LIBS += -lpthread
endif

GC_SRC = cheneygc.c

# Nothing to do for after-grovel-headers.
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/wrap.c
Expand Up @@ -167,7 +167,7 @@ wrapped_readlink(char *path)
*
* Some motivated spark fixed MIPS. -- ths, 2005-10-06 */

#if defined (LISP_FEATURE_LARGEFILE)
#if defined(LISP_FEATURE_LARGEFILE) && !defined(LISP_FEATURE_MIPS)
typedef dev_t ffi_dev_t;
typedef off_t ffi_off_t;
#elif defined(LISP_FEATURE_MIPS)
Expand Down
2 changes: 1 addition & 1 deletion version.lisp-expr
Expand Up @@ -17,4 +17,4 @@
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
"1.0.9.26"
"1.0.9.27"

0 comments on commit b2f01c8

Please sign in to comment.