Skip site navigation (1) Skip section navigation (2)

cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c

From: Reini Urban <rurban(at)x-ray(dot)at>
To: pgsql-patches(at)postgresql(dot)org
Subject: cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c
Date: 2004-08-24 19:49:51
Message-ID: 412B9BDF.1010806@x-ray.at (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-patches
Attached patches are required for cygwin:

2004-08-24 21:23:53 rurban(at)x-ray(dot)at
	* (postmaster/syslogger.c) struct timeval is
           declared in sys/time.h, not in time.h

2004-08-24 20:20:54 rurban:
	* (port/dirmod.c) cygwin needs different header locations,
           and unlink is a macro. There are no pgport_palloc
           versions yet


timezone/pgtz.c:
Pending is a patch against postgresql-8.0.0beta1/config/c-library.m4:
PGAC_VAR_INT_TIMEZONE

In the meantime I've hacked it with a cast from time_t to (int) in
timezone/pgtz.c: get_timezone_offset

but timezone really is of time_t, not int. I don't know what you are 
trying to do here.


There's on remaining issue for the cygwin build:
../../src/port/libpgport.a(dirmod.o)(.text+0x5ee):dirmod.c: undefined 
reference to `__imp__CurrentMemoryContext'
../../src/port/libpgport.a(dirmod.o)(.text+0x64b):dirmod.c: undefined 
reference to `__imp__CurrentMemoryContext'

which explains the pgport_palloc problem.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


Attachment: postgresql-8.0.0beta1-pgtz.diff
Description: text/plain (441 bytes)
Attachment: postgresql-8.0.0beta1-timeval.diff
Description: text/plain (451 bytes)
Attachment: postgresql-8.0.0beta1-dirmode.diff
Description: text/plain (809 bytes)

Responses

pgsql-cygwin by date

Next:From: Jason TishlerDate: 2004-08-24 20:05:15
Subject: Re: dlopen error 128 with createlang
Previous:From: Kumar PandeyDate: 2004-08-24 02:08:24
Subject: Postgres 7.4.3-1, plperl and perl-5.8.2

pgsql-patches by date

Next:From: Jason TishlerDate: 2004-08-24 20:24:50
Subject: Re: cygwin 8.0.0beta1 postmaster/syslogger.c, port/dirmod.c, timezone/pgtz.c
Previous:From: Dave PageDate: 2004-08-24 14:50:50
Subject: Service control enhancements

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group