2003-06-17 21:15:38

by J.A. Magallon

[permalink] [raw]
Subject: [PATCH] db4 for aicasm

Hi.

This enables the build of aicasm with db4-devel.

--- linux-2.4.21/drivers/scsi/aic7xxx/aicasm/Makefile.orig 2003-06-17 23:26:37.000000000 +0200
+++ linux-2.4.21/drivers/scsi/aic7xxx/aicasm/Makefile 2003-06-17 23:26:55.000000000 +0200
@@ -33,7 +33,9 @@
$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG)

aicdb.h:
- @if [ -e "/usr/include/db3/db_185.h" ]; then \
+ @if [ -e "/usr/include/db4/db_185.h" ]; then \
+ echo "#include <db4/db_185.h>" > aicdb.h; \
+ elif [ -e "/usr/include/db3/db_185.h" ]; then \
echo "#include <db3/db_185.h>" > aicdb.h; \
elif [ -e "/usr/include/db2/db_185.h" ]; then \
echo "#include <db2/db_185.h>" > aicdb.h; \
--- linux-2.4.21/drivers/scsi/aic79xx/aicasm/Makefile.orig 2003-06-17 23:25:57.000000000 +0200
+++ linux-2.4.21/drivers/scsi/aic79xx/aicasm/Makefile 2003-06-17 23:26:22.000000000 +0200
@@ -33,7 +33,9 @@
$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG)

aicdb.h:
- @if [ -e "/usr/include/db3/db_185.h" ]; then \
+ @if [ -e "/usr/include/db4/db_185.h" ]; then \
+ echo "#include <db4/db_185.h>" > aicdb.h; \
+ elif [ -e "/usr/include/db3/db_185.h" ]; then \
echo "#include <db3/db_185.h>" > aicdb.h; \
elif [ -e "/usr/include/db2/db_185.h" ]; then \
echo "#include <db2/db_185.h>" > aicdb.h; \


--
J.A. Magallon <[email protected]> \ Software is like sex:
werewolf.able.es \ It's better when it's free
Mandrake Linux release 9.2 (Cooker) for i586
Linux 2.4.21-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-1mdk))