diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/libpq/libpq.h | 3 | ||||
-rw-r--r-- | src/include/libpq/pqcomm.h | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/include/libpq/libpq.h b/src/include/libpq/libpq.h index 57ec39576d0..0893b646fb1 100644 --- a/src/include/libpq/libpq.h +++ b/src/include/libpq/libpq.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: libpq.h,v 1.12 1998/02/26 04:41:51 momjian Exp $ + * $Id: libpq.h,v 1.13 1998/03/02 05:42:06 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -282,5 +282,6 @@ extern void pq_async_notify(void); extern int StreamServerPort(char *hostName, short portName, int *fdP); extern int StreamConnection(int server_fd, Port *port); extern void StreamClose(int sock); +extern void StreamDoUnlink(void); #endif /* LIBPQ_H */ diff --git a/src/include/libpq/pqcomm.h b/src/include/libpq/pqcomm.h index 0b06de0df15..59a70b655c9 100644 --- a/src/include/libpq/pqcomm.h +++ b/src/include/libpq/pqcomm.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: pqcomm.h,v 1.23 1998/02/26 04:41:53 momjian Exp $ + * $Id: pqcomm.h,v 1.24 1998/03/02 05:42:15 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -35,8 +35,9 @@ typedef union SockAddr /* Configure the UNIX socket address for the well known port. */ #define UNIXSOCK_PATH(sun,port) \ - (sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)) + \ - offsetof(struct sockaddr_un, sun_path)) + (sprintf((sun).sun_path, "/tmp/.s.PGSQL.%d", (port)), \ + strlen((sun).sun_path)+ offsetof(struct sockaddr_un, sun_path)) + /* * We do this because sun_len is in BSD's struct, while others don't. * We never actually set BSD's sun_len, and I can't think of a |