Browse Source

fix building under FreeBSD

master
parent
commit
1973ea3774
  1. 16
      hexer/hexer.patch
  2. 4
      hexer/hexer.spec

16
hexer/hexer-0.1.4c.patch → hexer/hexer.patch

@ -1,6 +1,6 @@
--- hexer.c.orig Tue Apr 23 19:40:08 1996
+++ hexer.c Sun Apr 1 13:47:14 2001
@@ -67,7 +67,7 @@
+++ hexer.c Fri Apr 5 13:26:10 2002
@@ -67,10 +67,12 @@
extern int errno;
@ -8,14 +8,22 @@
+#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 };
--- commands.c.orig Tue Apr 23 19:40:09 1996
+++ commands.c Sun Apr 1 13:47:46 2001
@@ -1247,7 +1247,7 @@
+++ 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[];
#endif

4
hexer/hexer.spec

@ -33,11 +33,11 @@ Distribution: OpenPKG [REL]
Group: Editor
License: BSD
Version: 0.1.4c
Release: 20020318
Release: 20020405
# list of sources
Source0: ftp://ftp.netsw.org/system/tools/fileutils/edit/hexer-%{version}.tar.gz
Patch0: hexer-%{version}.patch
Patch0: hexer.patch
# build information
Prefix: %{l_prefix}

Loading…
Cancel
Save