Commit a738478a authored by Bruce Momjian's avatar Bruce Momjian

Here are additional patches for the UnixWare 7 port.

Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
parent 9005da08
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: pqcomm.h,v 1.26 1998/07/09 03:29:01 scrappy Exp $ * $Id: pqcomm.h,v 1.27 1998/08/22 04:24:18 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -34,9 +34,14 @@ typedef union SockAddr ...@@ -34,9 +34,14 @@ typedef union SockAddr
/* Configure the UNIX socket address for the well known port. */ /* Configure the UNIX socket address for the well known port. */
#if defined(SUN_LEN)
#define UNIXSOCK_PATH(sun,port) \
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)), SUN_LEN(&(sun)))
#else
#define UNIXSOCK_PATH(sun,port) \ #define UNIXSOCK_PATH(sun,port) \
(sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)), \ (sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)), \
strlen((sun).sun_path)+ offsetof(struct sockaddr_un, sun_path)) strlen((sun).sun_path)+ offsetof(struct sockaddr_un, sun_path))
#endif
/* /*
* We do this because sun_len is in BSD's struct, while others don't. * We do this because sun_len is in BSD's struct, while others don't.
......
...@@ -5,13 +5,17 @@ ...@@ -5,13 +5,17 @@
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
/*************************************** /***************************************
* Define this if you are compiling with * Define this if you are compiling with
* the native UNIXWARE C compiler. * the native UNIXWARE C compiler.
***************************************/ ***************************************/
#define UNIXWARE #define USE_UNIVEL_CC
typedef unsigned char slock_t; typedef unsigned char slock_t;
#define DISABLE_COMPLEX_MACRO
/*************************************************************** /***************************************************************
* The following include will get the needed prototype for the * The following include will get the needed prototype for the
* strcasecmp() function. * strcasecmp() function.
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.43 1998/07/20 17:45:49 momjian Exp $ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.44 1998/08/22 04:24:21 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -188,7 +188,7 @@ tas(volatile slock_t *lock) ...@@ -188,7 +188,7 @@ tas(volatile slock_t *lock)
#if defined(NEED_I386_TAS_ASM) #if defined(NEED_I386_TAS_ASM)
/* non gcc i386 based things */ /* non gcc i386 based things */
#if defined(USE_UNIVEL_CC) || defined(UNIXWARE) #if defined(USE_UNIVEL_CC)
#define TAS(lock) tas(lock) #define TAS(lock) tas(lock)
asm int asm int
...@@ -203,7 +203,7 @@ tas(slock_t *s_lock) ...@@ -203,7 +203,7 @@ tas(slock_t *s_lock)
popl %ebx popl %ebx
} }
#endif /* USE_UNIVEL_CC || UNIXWARE */ #endif /* USE_UNIVEL_CC */
#endif /* NEED_I386_TAS_ASM */ #endif /* NEED_I386_TAS_ASM */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.19 1998/07/12 18:48:05 momjian Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/Makefile.in,v 1.20 1998/08/22 04:24:26 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -66,6 +66,13 @@ ifeq ($(PORTNAME), solaris) ...@@ -66,6 +66,13 @@ ifeq ($(PORTNAME), solaris)
CFLAGS += $(CFLAGS_SL) CFLAGS += $(CFLAGS_SL)
endif endif
ifeq ($(PORTNAME), unixware)
install-shlib-dep := install-shlib
shlib := libpgtcl.so.1
LDFLAGS_SL = -G -z text
CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), univel) ifeq ($(PORTNAME), univel)
install-shlib-dep := install-shlib install-shlib-dep := install-shlib
shlib := libpgtcl.so.1 shlib := libpgtcl.so.1
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.19 1998/07/12 19:20:45 momjian Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/Makefile,v 1.20 1998/08/22 04:24:35 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -56,6 +56,20 @@ ifeq ($(PORTNAME), solaris) ...@@ -56,6 +56,20 @@ ifeq ($(PORTNAME), solaris)
CFLAGS += $(CFLAGS_SL) CFLAGS += $(CFLAGS_SL)
endif endif
ifeq ($(PORTNAME), unixware)
install-shlib-dep := install-shlib
shlib := libpq.so.1
LDFLAGS_SL = -G -z text
CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), univel)
install-shlib-dep := install-shlib
shlib := libpq.so.1
LDFLAGS_SL = -G -z text
CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), hpux) ifeq ($(PORTNAME), hpux)
install-shlib-dep := install-shlib install-shlib-dep := install-shlib
shlib := libpq.sl shlib := libpq.sl
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.26 1998/08/17 03:50:29 scrappy Exp $ # $Header: /cvsroot/pgsql/src/interfaces/libpq/Attic/Makefile.in,v 1.27 1998/08/22 04:24:28 momjian Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
...@@ -73,9 +73,16 @@ ifeq ($(PORTNAME), solaris) ...@@ -73,9 +73,16 @@ ifeq ($(PORTNAME), solaris)
CFLAGS += $(CFLAGS_SL) CFLAGS += $(CFLAGS_SL)
endif endif
ifeq ($(PORTNAME), unixware)
install-shlib-dep := install-shlib
shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
LDFLAGS_SL = -G -z text
CFLAGS += $(CFLAGS_SL)
endif
ifeq ($(PORTNAME), univel) ifeq ($(PORTNAME), univel)
install-shlib-dep := install-shlib install-shlib-dep := install-shlib
shlib := libpq.so.1 shlib := libpq.so.$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
LDFLAGS_SL = -G -z text LDFLAGS_SL = -G -z text
CFLAGS += $(CFLAGS_SL) CFLAGS += $(CFLAGS_SL)
endif endif
......
AROPT:crs AROPT:crs
CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll,alloca -Dsvr4 CFLAGS:-Xa -v -O -K i486,host,inline,loop_unroll,alloca -Dsvr4
SHARED_LIB:-K PIC SHARED_LIB:-K PIC
SRCH_INC: SRCH_INC:/opt/include
SRCH_LIB: SRCH_LIB:/opt/lib
USE_LOCALE:no USE_LOCALE:no
DLSUFFIX:.so DLSUFFIX:.so
CC:cc CC:cc
YFLAGS:-d
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment