瀏覽代碼

add quick hack for HP-UX

Ralf S. Engelschall 21 年之前
父節點
當前提交
38963f3660
共有 2 個文件被更改,包括 16 次插入1 次删除
  1. 13 0
      fsl/fsl.patch
  2. 3 1
      fsl/fsl.spec

+ 13 - 0
fsl/fsl.patch

@@ -0,0 +1,13 @@
+Index: fsl.c
+--- fsl.c.orig	2004-04-22 12:25:55.000000000 +0200
++++ fsl.c	2004-06-04 17:54:20.000000000 +0200
+@@ -43,6 +43,9 @@
+ #include <dirent.h>
+ 
+ /* standard include we re-implement */
++#ifdef __hpux
++#define _XOPEN_SOURCE_EXTENDED
++#endif
+ #include <syslog.h>
+ 
+ /* third party (linked in) */

+ 3 - 1
fsl/fsl.spec

@@ -34,7 +34,7 @@ Class:        CORE
 Group:        System
 License:      MIT-style
 Version:      1.5.0
-Release:      20040426
+Release:      20040604
 
 #   package options
 %option       with_fsl_debuglogcode   no
@@ -43,6 +43,7 @@ Release:      20040426
 Source0:      ftp://ftp.ossp.org/pkg/lib/fsl/fsl-%{version}.tar.gz
 Source1:      rc.fsl
 Source2:      fsl.fsl
+Patch0:       fsl.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -71,6 +72,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \