From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | deststar <deststar(at)blueyonder(dot)co(dot)uk> |
Cc: | Jason Tishler <jason(at)tishler(dot)net>, pgsql-hackers(at)postgresql(dot)org, pgsql-cygwin(at)postgresql(dot)org |
Subject: | Re: [HACKERS] sa_family_t in cygwin compile of cvs |
Date: | 2003-06-23 23:04:00 |
Message-ID: | 200306232304.h5NN40021965@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-cygwin pgsql-hackers |
deststar, is there any sa_family or ss_family in the cygwin include
directory, perhap with double leading underscores?
---------------------------------------------------------------------------
deststar wrote:
> Jason Tishler wrote:
> > On Sun, Jun 15, 2003 at 04:54:21PM +0100, deststar wrote:
> >
> >>On cygwin sa_family_t was undeclared, adding the following line:
> >>typedef unsigned short sa_family_t;
> >>to both:
> >>src/port/getaddrinfo.c
> >>src/include/libpq/pqcomm.h
> >
> >
> > Isn't the attached or fixing Cygwin itself a better approach?
> >
> >
> Yes it does seem better, attached is a proposed patch to cygwin.h &
> configure.in (incase cygwin gets it in future)
> Have tested with make installcheck & it works fine.
> If you see no problems I will sumit to patches
> thanks,
> - Stuart
> *** src/include/port/cygwin.h.orig Thu May 22 18:20:28 2003
> --- src/include/port/cygwin.h Tue Jun 17 22:31:04 2003
> ***************
> *** 21,23 ****
> --- 21,28 ----
> #else
> #define DLLIMPORT __declspec (dllimport)
> #endif
> +
> + #ifndef HAVE_SA_FAMILY_T
> + typedef unsigned short sa_family_t;
> + #endif
> +
> *** configure.in.orig Sun Jun 15 05:07:58 2003
> --- configure.in Tue Jun 17 22:22:24 2003
> ***************
> *** 855,860 ****
> --- 855,866 ----
> [$ac_includes_default
> #include <netinet/in.h>])
>
> + AC_CHECK_TYPE(sa_family_t,
> + [AC_DEFINE(HAVE_SA_FAMILY_T,1,[Cygwin does not have sa_family_t defined so test])],
> + [],
> + [$ac_includes_default
> + #include <netinet/in.h>])
> +
> AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
> [AC_TRY_LINK(
> [#include <machine/vmparam.h>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | deststar | 2003-06-23 23:43:48 | Re: [HACKERS] sa_family_t in cygwin compile of cvs |
Previous Message | Diogo de Oliveira Biazus | 2003-06-23 13:32:01 | Re: Problems compiling PostgreSQL 7.3.3-1 under Win98 |
From | Date | Subject | |
---|---|---|---|
Next Message | deststar | 2003-06-23 23:43:48 | Re: [HACKERS] sa_family_t in cygwin compile of cvs |
Previous Message | The Hermit Hacker | 2003-06-23 22:32:40 | Re: ftp mirror |