Skip to content

Commit 440c913

Browse files
committed
Define __alpha__ for __alpha.
1 parent 34eb4f0 commit 440c913

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/interfaces/perl5/test.pl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/local/bin/perl -w
22

3-
# $Id: test.pl,v 1.10 1999/10/08 05:03:14 momjian Exp $
3+
# $Id: test.pl,v 1.11 1999/10/08 17:14:45 momjian Exp $
44

55
# Before `make install' is performed this script should be runnable with
66
# `make test'. After `make install' it should work as `perl test.pl'
@@ -147,7 +147,8 @@
147147

148148
######################### create and insert into table
149149

150-
$result = $conn->exec("CREATE TABLE person (id int4, name char(16)) -- test");
150+
# we test comments inside string and with no trailing newline here
151+
$result = $conn->exec("CREATE TABLE person (id int4, -- test\n name char(16)) -- test");
151152
die $conn->errorMessage unless PGRES_COMMAND_OK eq $result->resultStatus;
152153
my $cmd = $result->cmdStatus;
153154
( "CREATE" eq $cmd )

src/makefiles/Makefile.alpha

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1+
/* some platforms define __alpha, but not __alpha__ */
2+
#if defined(__alpha) && !defined(__alpha__)
3+
#define __alpha__
4+
#endif
5+
16
%.so: %.o
27
$(LD) -shared -expect_unresolved '*' -o $@ $<

0 commit comments

Comments
 (0)