# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/powerpc/pdisk/code_update.patch # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at https://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # --- ROCK-COPYRIGHT-NOTE-END --- --- ./errors.c 2000-05-16 09:10:57.000000000 -0500 +++ ./errors.c 2002-12-19 20:51:14.000000000 -0500 @@ -29,21 +29,24 @@ #include // for exit() -#ifndef __linux__ #include -#endif -// for strrchr + +// for strrchr and strerror #include // for va_start(), etc. #include +// for errno +#include + #include "errors.h" // // Defines // +#define sys_nerr errno // @@ -134,7 +137,7 @@ #if defined(__linux__) || defined(NeXT) || defined(__unix__) if (value > 0 && value < sys_nerr) { - fprintf(stderr, " (%s)\n", sys_errlist[value]); + fprintf(stderr, " (%s)\n", strerror(value)); } else { fprintf(stderr, "\n"); } @@ -163,7 +166,7 @@ #if defined(__linux__) || defined(NeXT) || defined(__unix__) if (value > 0 && value < sys_nerr) { - fprintf(stderr, " (%s)\n", sys_errlist[value]); + fprintf(stderr, " (%s)\n", strerror(value)); } else { fprintf(stderr, "\n"); } --- ./file_media.c 2000-05-16 09:10:55.000000000 -0500 +++ ./file_media.c 2002-12-19 20:48:18.000000000 -0500 @@ -58,6 +58,7 @@ * Defines */ #ifdef __linux__ +#define llseek lseek64 #define LOFF_MAX 9223372036854775807LL extern __loff_t llseek __P ((int __fd, __loff_t __offset, int __whence)); #else