From: | Vadim Mikheev <vadim(at)krs(dot)ru> |
---|---|
To: | hackers(at)postgresql(dot)org |
Cc: | scrappy(at)hub(dot)org, dz(at)cs(dot)unitn(dot)it |
Subject: | SPARC, SunOS 5.5.1, gcc 2.7.2.1 - can't compile... |
Date: | 1998-09-04 07:45:37 |
Message-ID: | 35EF9AA1.187F5B54@krs.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
src/backend/libpq/pqcomm.c:
> socket-flock.patch
>
> use advisory locks to check if the unix socket can be deleted.
> A running postmaster keeps a lock on that file. A starting
> postmaster exits if the file exists and is locked, otherwise
> it deletes the sockets and proceeds.
> This avoid the need to remove manually the file after a postmaster
> or system crash.
> I don't know if flock is available on any system. If not we could
> define a HAVE_FLOCK set by configure.
flock() is not standard call - imho, fcntl() should be used...
---
src/backend/port/snprintf.c:
snprintf.c:84: structure has no member named `_flags'
snprintf.c:84: `__SWR' undeclared (first use this function)
snprintf.c:84: (Each undeclared identifier is reported only once
snprintf.c:84: for each function it appears in.)
snprintf.c:84: `__SSTR' undeclared (first use this function)
snprintf.c:85: structure has no member named `_bf'
snprintf.c:85: structure has no member named `_p'
snprintf.c:86: structure has no member named `_bf'
snprintf.c:86: structure has no member named `_w'
snprintf.c:89: structure has no member named `_p'
^^^^^^^^^
This is about FILE structure...
BSD code was used for snprintf.c, but
FILE in BSD is not the same as in SunOS 5.5.1...
Vadim
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Ivar Helbekkmo | 1998-09-04 07:46:30 | CIDR/IP types. Was: [GENERAL] big numbers |
Previous Message | Aleksey Dashevsky | 1998-09-04 07:15:19 | Subqueries? |