----------  Forwarded Message  ----------

Subject: Re: [HACKERS] OSF build fixed
Date: Mon, 7 Jul 2003 18:07:27 +1000
From: Philip Yarra <[EMAIL PROTECTED]>
To: Kurt Roeckx <[EMAIL PROTECTED]>, Tom Lane <[EMAIL PROTECTED]>
Cc: Joe Conway <[EMAIL PROTECTED]>, [EMAIL PROTECTED]

Patches:

int64-pqcomm.patch: changes int64_t to int64 in src/include/libpq/pqcomm.h
tested on RedHat Linux 7.3 and OSF

osf-template.patch: adds pthread support for OSF
tested on OSF (uname -a: OSF1 hostname V4.0 1229 alpha)

If these are okay, can someone apply them?
Can someone with access to different OSF versions test pthread-safety as
 well?

Regards, Philip Yarra.

-------------------------------------------------------

*** pgsql-old/src/include/libpq/pqcomm.h	Wed Jun 25 10:42:16 2003
--- pgsql/src/include/libpq/pqcomm.h	Mon Jul  7 17:30:11 2003
***************
*** 38,44 ****
   * Desired design of maximum size and alignment
   */
  #define _SS_MAXSIZE    128  /* Implementation specific max size */
! #define _SS_ALIGNSIZE  (sizeof (int64_t))
                           /* Implementation specific desired alignment */
  /*
   * Definitions used for sockaddr_storage structure paddings design.
--- 38,44 ----
   * Desired design of maximum size and alignment
   */
  #define _SS_MAXSIZE    128  /* Implementation specific max size */
! #define _SS_ALIGNSIZE  (sizeof (int64))
                           /* Implementation specific desired alignment */
  /*
   * Definitions used for sockaddr_storage structure paddings design.
***************
*** 61,67 ****
  		/* 6 byte pad, this is to make implementation
  		 * specific pad up to alignment field that
  		 * follows explicit in the data structure */
!     int64_t	__ss_align;
  		/* field to force desired structure
  		 * storage alignment */
      char	__ss_pad2[_SS_PAD2SIZE];
--- 61,67 ----
  		/* 6 byte pad, this is to make implementation
  		 * specific pad up to alignment field that
  		 * follows explicit in the data structure */
!     int64	__ss_align;
  		/* field to force desired structure
  		 * storage alignment */
      char	__ss_pad2[_SS_PAD2SIZE];
*** pgsql-old/src/template/osf	Thu Sep  5 08:54:18 2002
--- pgsql/src/template/osf	Mon Jul  7 17:30:59 2003
***************
*** 4,6 ****
--- 4,9 ----
    CC="$CC -std"
    CFLAGS='-O4 -Olimit 2000'
  fi
+ SUPPORTS_THREADS=yes
+ THREAD_CFLAGS="-pthread"
+ 
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to