source: patches/hfsutils-3.2.6-fixes-1.patch @ 6eacb8f

clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 6eacb8f was b3dfbf1, checked in by Jim Gifford <clfs@…>, 15 years ago

Added HFS Utils Patch

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[b3dfbf1]1Submitted by: Jim Gifford (jim at cross-lfs dot org)
2Date: 2009-12-16
3Initial Package Version: 3.2.6
4Upstream Status: Already Applied
5Origin: Jim Gifford
6Description: Missing Errno
7             Support Drives Larger the 2gb
8
9diff -Naur hfsutils-3.2.6.orig/libhfs/os/unix.c hfsutils-3.2.6/libhfs/os/unix.c
10--- hfsutils-3.2.6.orig/libhfs/os/unix.c        1998-11-02 14:09:13.000000000 -0800
11+++ hfsutils-3.2.6/libhfs/os/unix.c     2009-02-17 15:09:36.025977091 -0800
12@@ -19,6 +19,11 @@
13  * $Id: unix.c,v 1.8 1998/11/02 22:09:13 rob Exp $
14  */
15 
16+#ifdef __linux__
17+#define _FILE_OFFSET_BITS 64
18+#define _LARGE_FILES
19+#endif
20+
21 # ifdef HAVE_CONFIG_H
22 #  include "config.h"
23 # endif
24diff -Naur hfsutils-3.2.6.orig/tclhfs.c hfsutils-3.2.6/tclhfs.c
25--- hfsutils-3.2.6.orig/tclhfs.c        1998-11-02 14:08:32.000000000 -0800
26+++ hfsutils-3.2.6/tclhfs.c     2009-02-17 15:09:15.124637798 -0800
27@@ -43,8 +43,7 @@
28 # include "charset.h"
29 # include "suid.h"
30 # include "version.h"
31-
32-extern int errno;
33+# include <errno.h>
34 
35 # define ERROR(code, str)      (hfs_error = (str), errno = (code))
36 
Note: See TracBrowser for help on using the repository browser.