head 1.2; access; symbols OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2 OPENPKG_E1_FP:1.2 OPENPKG_2_STABLE_MP:1.2 OPENPKG_2_STABLE_20061018:1.2 OPENPKG_2_STABLE_20060622:1.2 OPENPKG_2_STABLE:1.2.0.10 OPENPKG_2_STABLE_BP:1.2 OPENPKG_2_5_RELEASE:1.2 OPENPKG_2_5_SOLID:1.2.0.8 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_2_4_RELEASE:1.2 OPENPKG_2_4_SOLID:1.2.0.6 OPENPKG_2_4_SOLID_BP:1.2 OPENPKG_CW_FP:1.2 OPENPKG_2_3_RELEASE:1.2 OPENPKG_2_3_SOLID:1.2.0.4 OPENPKG_2_3_SOLID_BP:1.2 OPENPKG_2_2_RELEASE:1.2 OPENPKG_2_2_SOLID:1.2.0.2 OPENPKG_2_2_SOLID_BP:1.2 OPENPKG_2_1_RELEASE:1.1 OPENPKG_2_1_SOLID:1.1.0.12 OPENPKG_2_1_SOLID_BP:1.1 OPENPKG_2_0_RELEASE:1.1 OPENPKG_2_0_SOLID:1.1.0.10 OPENPKG_2_0_SOLID_BP:1.1 OPENPKG_1_3_RELEASE:1.1 OPENPKG_1_3_SOLID:1.1.0.8 OPENPKG_1_3_SOLID_BP:1.1 OPENPKG_1_STABLE_MP:1.1 OPENPKG_1_2_RELEASE:1.1 OPENPKG_1_2_SOLID:1.1.0.6 OPENPKG_1_2_SOLID_BP:1.1 OPENPKG_1_STABLE:1.1.0.4 OPENPKG_1_STABLE_BP:1.1 OPENPKG_1_1_RELEASE:1.1 OPENPKG_1_1_SOLID:1.1.0.2 OPENPKG_1_1_SOLID_BP:1.1; locks; strict; comment @# @; 1.2 date 2004.07.15.07.46.14; author rse; state Exp; branches; next 1.1; 1.1 date 2002.04.05.11.30.15; author rse; state Exp; branches; next ; desc @@ 1.2 log @modifying package: hexer-0.1.4c 20040207 -> 20040715 @ text @Index: calc.c --- calc.c.orig 1996-04-23 19:40:09 +0200 +++ calc.c 2004-07-15 09:44:08 +0200 @@@@ -67,8 +67,6 @@@@ #if NEED_ALLOCA_H #include #endif -#else -char *alloca(); #endif #include "tio.h" Index: commands.c --- commands.c.orig 1996-04-23 19:40:09 +0200 +++ commands.c 2004-07-15 09:44:37 +0200 @@@@ -57,8 +57,6 @@@@ #if NEED_ALLOCA_H #include #endif -#else -char *alloca(); #endif #include "hexer.h" @@@@ -1246,8 +1244,10 @@@@ int cant_write_f = 0; long k; char *errormsg; +#if !defined(BSD) extern int sys_nerr; -#ifndef BSD +#endif +#if !defined(BSD) && !defined(__linux__) extern char *sys_errlist[]; #endif extern int errno; @@@@ -1267,7 +1267,7 @@@@ if (!errno || errno >= sys_nerr) errormsg = "unknown error"; else - errormsg = sys_errlist[errno]; + errormsg = (char *)sys_errlist[errno]; he_message(0, "@@Aberror writing file@@~ `%s': %s", i->path, errormsg); cant_write_f = 1; } else { Index: exh.c --- exh.c.orig 1996-04-23 19:40:08 +0200 +++ exh.c 2004-07-15 09:43:42 +0200 @@@@ -61,8 +61,6 @@@@ #if NEED_ALLOCA_H #include #endif -#else -char *alloca(); #endif #include "hexer.h" Index: hexer.c --- hexer.c.orig 1996-04-23 19:40:08 +0200 +++ hexer.c 2004-07-15 09:42:51 +0200 @@@@ -67,10 +67,12 @@@@ extern int errno; -#ifndef BSD +#if !defined(BSD) && !defined(__linux__) extern char *sys_errlist[]; #endif +#if !defined(BSD) extern int sys_nerr; +#endif extern mkstemp(); const struct buffer_s NO_BUFFER = { 0, 0, 0, 0, 0, 0 }; Index: map.c --- map.c.orig 1996-04-23 19:40:09 +0200 +++ map.c 2004-07-15 09:43:51 +0200 @@@@ -53,8 +53,6 @@@@ #if NEED_ALLOCA_H #include #endif -#else -char *alloca(); #endif #include "defs.h" @ 1.1 log @fix building under FreeBSD @ text @d1 60 a60 2 --- hexer.c.orig Tue Apr 23 19:40:08 1996 +++ hexer.c Fri Apr 5 13:26:10 2002 d75 9 a83 12 --- commands.c.orig Tue Apr 23 19:40:09 1996 +++ commands.c Fri Apr 5 13:28:08 2002 @@@@ -1246,8 +1246,10 @@@@ int cant_write_f = 0; long k; char *errormsg; +#if !defined(BSD) extern int sys_nerr; -#ifndef BSD +#endif +#if !defined(BSD) && !defined(__linux__) extern char *sys_errlist[]; d85 2 a86 1 extern int errno; @