diff options
author | Andy Wingo <wingo@pobox.com> | 2013-02-19 22:36:22 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-02-19 22:36:22 +0100 |
commit | 5a4a4454c5302ed511eafde5a7759ebf00fbee17 (patch) | |
tree | 5b0422a8b7c963fae160ebdb3d9ca5583f4098b0 /libguile/objcodes.c | |
parent | 854ada4f1af8d72859b77e8764729f3cca45460a (diff) | |
download | guile-5a4a4454c5302ed511eafde5a7759ebf00fbee17.tar.gz |
copy-file and load-objcode use O_BINARY
* libguile/filesys.c (scm_copy_file):
* libguile/objcodes.c (scm_load_objcode): Use O_BINARY. Thanks to Eli
Zaretskii for the patch.
Diffstat (limited to 'libguile/objcodes.c')
-rw-r--r-- | libguile/objcodes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/objcodes.c b/libguile/objcodes.c index 004dd6118..a8515a7a2 100644 --- a/libguile/objcodes.c +++ b/libguile/objcodes.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2009, 2010, 2011 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009, 2010, 2011, 2013 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -363,7 +363,7 @@ SCM_DEFINE (scm_load_objcode, "load-objcode", 1, 0, 0, SCM_VALIDATE_STRING (1, file); c_file = scm_to_locale_string (file); - fd = open (c_file, O_RDONLY | O_CLOEXEC); + fd = open (c_file, O_RDONLY | O_BINARY | O_CLOEXEC); free (c_file); if (fd < 0) SCM_SYSERROR; |