* added the Unlicense as valid in misc/share/REGISTER
[t2sde.git] / package / powerpc / pdisk / code_update.patch
blob59a6f1a090b23f080caae8bac7b9464131a55bd6
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../pdisk/code_update.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
7 #
8 # More information can be found in the files COPYING and README.
9 #
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
15 # version.
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./errors.c 2000-05-16 09:10:57.000000000 -0500
19 +++ ./errors.c 2002-12-19 20:51:14.000000000 -0500
20 @@ -29,21 +29,24 @@
21 #include <stdio.h>
23 // for exit()
24 -#ifndef __linux__
25 #include <stdlib.h>
26 -#endif
27 -// for strrchr
29 +// for strrchr and strerror
30 #include <string.h>
32 // for va_start(), etc.
33 #include <stdarg.h>
35 +// for errno
36 +#include <errno.h>
38 #include "errors.h"
42 // Defines
44 +#define sys_nerr errno
48 @@ -134,7 +137,7 @@
50 #if defined(__linux__) || defined(NeXT) || defined(__unix__)
51 if (value > 0 && value < sys_nerr) {
52 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
53 + fprintf(stderr, " (%s)\n", strerror(value));
54 } else {
55 fprintf(stderr, "\n");
57 @@ -163,7 +166,7 @@
59 #if defined(__linux__) || defined(NeXT) || defined(__unix__)
60 if (value > 0 && value < sys_nerr) {
61 - fprintf(stderr, " (%s)\n", sys_errlist[value]);
62 + fprintf(stderr, " (%s)\n", strerror(value));
63 } else {
64 fprintf(stderr, "\n");
66 --- ./file_media.c 2000-05-16 09:10:55.000000000 -0500
67 +++ ./file_media.c 2002-12-19 20:48:18.000000000 -0500
68 @@ -58,6 +58,7 @@
69 * Defines
71 #ifdef __linux__
72 +#define llseek lseek64
73 #define LOFF_MAX 9223372036854775807LL
74 extern __loff_t llseek __P ((int __fd, __loff_t __offset, int __whence));
75 #else