1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

Version 06-30-0248

This commit is contained in:
Byron Nikolaidis
1998-07-22 23:47:48 +00:00
parent 2a67742412
commit 6e66468f3a
39 changed files with 4546 additions and 283 deletions

View File

@@ -10,7 +10,23 @@
#ifndef __SOCKET_H__
#define __SOCKET_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef UNIX
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netdb.h>
#include <netinet/in.h>
#define closesocket(xxx) close(xxx)
#define SOCKETFD int
#else
#include <winsock.h>
#define SOCKETFD SOCKET
#endif
#include "psqlodbc.h"
#define SOCKET_ALREADY_CONNECTED 1
@@ -33,7 +49,7 @@ struct SocketClass_ {
unsigned char *buffer_in;
unsigned char *buffer_out;
SOCKET socket;
SOCKETFD socket;
char *errormsg;
int errornumber;