Properly exit ODBC with 'X', allow linking on BSD/OS.
This commit is contained in:
parent
618733de1a
commit
fd40942fd8
@ -2,7 +2,7 @@
|
||||
#
|
||||
# GNUMakefile for psqlodbc (Postgres ODBC driver)
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.8 2000/12/16 18:14:25 petere Exp $
|
||||
# $Header: /cvsroot/pgsql/src/interfaces/odbc/Attic/GNUmakefile,v 1.9 2001/02/10 05:50:27 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -24,7 +24,6 @@ OBJS = info.o bind.o columninfo.o connection.o convert.o drvconn.o \
|
||||
gpps.o tuple.o tuplelist.o dlg_specific.o $(OBJX)
|
||||
|
||||
SHLIB_LINK = $(filter -lm, $(LIBS))
|
||||
|
||||
all: all-lib
|
||||
|
||||
# Shared library stuff
|
||||
@ -33,7 +32,13 @@ include $(top_srcdir)/src/Makefile.shlib
|
||||
# Symbols must be resolved to the version in the shared library because
|
||||
# the driver manager (e.g., iodbc) provides some symbols with the same
|
||||
# names and we don't want those. (This issue is probably ELF specific.)
|
||||
#
|
||||
# BSD/OS fails with libc and crt1.o undefined symbols without this.
|
||||
# bjm 2001-02-09
|
||||
#
|
||||
ifneq ($(PORTNAME), bsdi)
|
||||
LINK.shared += $(shlib_symbolic)
|
||||
endif
|
||||
|
||||
odbc_headers = isql.h isqlext.h iodbc.h
|
||||
odbc_includedir = $(includedir)/iodbc
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: bind.c
|
||||
*
|
||||
* Description: This module contains routines related to binding
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: columninfo.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: connection.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: convert.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: dlg_specific.c
|
||||
*
|
||||
* Description: This module contains any specific code for handling
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: drvconn.c
|
||||
*
|
||||
* Description: This module contains only routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: environ.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: execute.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: info.c
|
||||
*
|
||||
* Description: This module contains routines related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: lobj.c
|
||||
*
|
||||
* Description: This module contains routines related to manipulating
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: misc.c
|
||||
*
|
||||
* Description: This module contains miscellaneous routines
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: options.c
|
||||
*
|
||||
* Description: This module contains routines for getting/setting
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: parse.c
|
||||
*
|
||||
* Description: This module contains routines related to parsing SQL statements.
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: pgtypes.c
|
||||
*
|
||||
* Description: This module contains routines for getting information
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: psqlodbc.c
|
||||
*
|
||||
* Description: This module contains the main entry point (DllMain) for the library.
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: qresult.c
|
||||
*
|
||||
* Description: This module contains functions related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: results.c
|
||||
*
|
||||
* Description: This module contains functions related to
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: setup.c
|
||||
*
|
||||
* Description: This module contains the setup functions for
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: socket.c
|
||||
*
|
||||
* Description: This module contains functions for low level socket
|
||||
@ -78,7 +77,11 @@ SOCK_Destructor(SocketClass *self)
|
||||
{
|
||||
if (self->socket != -1) {
|
||||
if ( ! shutdown(self->socket, 2)) /* no sends or receives */
|
||||
{
|
||||
SOCK_put_char(self, 'X');
|
||||
SOCK_flush_output(self);
|
||||
closesocket(self->socket);
|
||||
}
|
||||
}
|
||||
|
||||
if (self->buffer_in)
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: statement.c
|
||||
*
|
||||
* Description: This module contains functions related to creating
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: tuple.c
|
||||
*
|
||||
* Description: This module contains functions for setting the data for individual
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
/* Module: tuplelist.c
|
||||
*
|
||||
* Description: This module contains functions for creating a manual result set
|
||||
|
Loading…
x
Reference in New Issue
Block a user