Pārlūkot izejas kodu

fix building under FreeBSD

Ralf S. Engelschall 24 gadi atpakaļ
vecāks
revīzija
1973ea3774
2 mainītis faili ar 14 papildinājumiem un 6 dzēšanām
  1. 12 4
      hexer/hexer-0.1.4c.patch
  2. 2 2
      hexer/hexer.spec

+ 12 - 4
hexer/hexer-0.1.4c.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

+ 2 - 2
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}