浏览代码

add some quirks for HPUX

Thorsten Hohmeier 21 年之前
父节点
当前提交
b69e80887e
共有 2 个文件被更改,包括 29 次插入1 次删除
  1. 26 0
      a2ps/a2ps.patch
  2. 3 1
      a2ps/a2ps.spec

+ 26 - 0
a2ps/a2ps.patch

@@ -0,0 +1,26 @@
+Index: lib/quotearg.c
+--- lib/quotearg.c.orig	2000-01-19 09:19:48 +0100
++++ lib/quotearg.c	2004-08-06 13:34:41 +0200
+@@ -59,6 +59,9 @@
+ #endif
+ 
+ #if HAVE_MBRTOWC && HAVE_WCHAR_H
++#if defined(__hpux)
++# include<sys/_mbstate_t.h>
++#endif
+ # include <wchar.h>
+ #else
+ # define iswprint(wc) 1
+Index: lib/strftime.c
+--- lib/strftime.c.orig	2000-01-02 08:10:09 +0100
++++ lib/strftime.c	2004-08-06 13:35:34 +0200
+@@ -67,6 +67,9 @@
+ 
+ #if DO_MULTIBYTE
+ # if HAVE_MBRLEN
++#  if defined(__hpux)
++#   include<sys/_mbstate_t.h>
++#  endif
+ #  include <wchar.h>
+ # else
+    /* Simulate mbrlen with mblen as best we can.  */

+ 3 - 1
a2ps/a2ps.spec

@@ -38,10 +38,11 @@ Class:        BASE
 Group:        Converter
 License:      GPL
 Version:      %{V_major}%{V_minor}
-Release:      20040207
+Release:      20040806
 
 #   list of sources
 Source0:      ftp://ftp.enst.fr/pub/unix/a2ps/a2ps-%{V_major}%{V_minor}.tar.gz
+Patch0:       a2ps.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -67,6 +68,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q -n a2ps-%{V_major}
+    %patch -p0
 
 %build
     CC="%{l_cc}" \