UnixWare Thread Patch (and test_fsync)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: pgsql-patches(at)postgresql(dot)org
Subject: UnixWare Thread Patch (and test_fsync)
Date: 2004-03-18 21:42:14
Message-ID: 554720000.1079646134@lerlaptop-red.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Here is a patch for the UnixWare thread stuff (template only, not
initdb), and to the test_fsync makefile to remove a gcc'ism:

Index: src/template/unixware
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/template/unixware,v
retrieving revision 1.30
diff -u -r1.30 unixware
--- src/template/unixware 11 Feb 2004 21:44:06 -0000 1.30
+++ src/template/unixware 18 Mar 2004 21:39:25 -0000
@@ -24,5 +24,9 @@
THREAD_CPPFLAGS="-K pthread"
fi

-# tools/thread/thread_test must be run
+THREAD_SUPPORT=yes
THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT"
+STRERROR_THREADSAFE=yes
+GETPWUID_THREADSAFE=yes
+GETHOSTBYNAME_THREADSAFE=yes
+
Index: src/tools/fsync/Makefile
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/tools/fsync/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- src/tools/fsync/Makefile 18 Mar 2004 03:56:59 -0000 1.1
+++ src/tools/fsync/Makefile 18 Mar 2004 21:39:26 -0000
@@ -4,7 +4,7 @@
#
TARGET = test_fsync
XFLAGS =
-CFLAGS = -g -Wall
+CFLAGS = -O
LIBS =

$(TARGET) : test_fsync.o

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Attachment Content-Type Size
pg-tip.patch1 application/octet-stream 1021 bytes

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2004-03-18 23:00:58 Re: [HACKERS] compile warning in CVS HEAD
Previous Message Larry Rosenman 2004-03-18 21:24:43 UnixWare/CVS Tip/initdb.c needs to use threads flags...