mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

80 lines
2.2 KiB

# --- 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 - 2003 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it 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. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- 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 <stdio.h>
// for exit()
-#ifndef __linux__
#include <stdlib.h>
-#endif
-// for strrchr
+
+// for strrchr and strerror
#include <string.h>
// for va_start(), etc.
#include <stdarg.h>
+// for errno
+#include <errno.h>
+
#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