Namazu-devel-ja(旧)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch for building 2.0.4 on SunOS 4.1.4_JL (namazu-bugs-ja#39)
- From: kajiyama@xxxxxxxxxxxxxxxxxxxxxxxx
- Date: Sun, 10 Sep 2000 04:14:39 +0900 (JST)
- X-ml-name: namazu-devel-ja
- X-mail-count: 00785
Full_Name: Tamito KAJIYAMA
Version: 2.0.4
OS: SunOS 4.1.4_JL
Submission from: (NULL) (150.42.18.197)
Namazu 2.0.4 を SunOS 4.1.4_JL 上で構築しました。シンボル EXIT_FAILURE が
未定義になるため、以下のパッチが必要でした。configure.in
等を修正するのが筋なので
しょうが、変更方法が分からないので .c ファイルへのパッチをそのまま送ります。
diff -rc namazu-2.0.4.orig/src/cgi.c namazu-2.0.4/src/cgi.c
*** namazu-2.0.4.orig/src/cgi.c Wed Apr 5 16:05:49 2000
--- namazu-2.0.4/src/cgi.c Sun Sep 10 02:36:32 2000
***************
*** 49,54 ****
--- 49,58 ----
#include "util.h"
#include "system.h"
+ #ifndef EXIT_FAILURE
+ #define EXIT_FAILURE 1
+ #endif
+
/*
*
* Private functions
diff -rc namazu-2.0.4.orig/src/namazu-cmd.c namazu-2.0.4/src/namazu-cmd.c
*** namazu-2.0.4.orig/src/namazu-cmd.c Fri Mar 3 12:36:21 2000
--- namazu-2.0.4/src/namazu-cmd.c Sun Sep 10 02:37:00 2000
***************
*** 59,64 ****
--- 59,68 ----
#include "system.h"
#include "namazu.h"
+ #ifndef EXIT_FAILURE
+ #define EXIT_FAILURE 1
+ #endif
+
/*
*
* Private functions
diff -rc namazu-2.0.4.orig/src/output.c namazu-2.0.4/src/output.c
*** namazu-2.0.4.orig/src/output.c Tue Apr 4 19:44:21 2000
--- namazu-2.0.4/src/output.c Sun Sep 10 02:37:11 2000
***************
*** 46,51 ****
--- 46,55 ----
#include "idxname.h"
#include "query.h"
+ #ifndef EXIT_FAILURE
+ #define EXIT_FAILURE 1
+ #endif
+
static int htmlmode = 0;
static int cgimode = 0;
static int quietmode = 0;