pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Cedar Cox <cedarc@visionforisrael.com>
Cc: Markus Jung <diplomarbeit.markusjung@gmx.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: libpg++ under SUSE Linux 7.0 (problem with link os.h)
Date: Mon, 22 Jan 2001 11:19:56 -0500
Message-ID: <21689.980180396@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0101221829140.19748-100000@nanu.visionforisrael.com>
References: <Pine.LNX.4.21.0101221829140.19748-100000@nanu.visionforisrael.com>

Cedar Cox <cedarc@visionforisrael.com> writes:
> I believe this is referring to the linux.h in the linux kernel source
> code.

No, it's referring to the Postgres file src/include/port/linux.h.  There
is a packaging error in the 7.0 RPMs that causes them to create the
installed os.h as a symlink, rather than a copy of the port .h file as
it should be.

Markus, you can replace os.h with the attached (7.0's linux.h file).

			regards, tom lane


/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
   here or with -D compile options, but __ macros should be set and used by C
   library macros, not Postgres code.  __USE_POSIX is set by features.h,
   __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
   be used.
*/
#define JMP_BUF
#define USE_POSIX_TIME

#if defined(__i386__)
typedef unsigned char slock_t;

#define HAS_TEST_AND_SET

#elif defined(__sparc__)
typedef unsigned char slock_t;

#define HAS_TEST_AND_SET

#elif defined(__powerpc__)
typedef unsigned int slock_t;

#define HAS_TEST_AND_SET

#elif defined(__alpha__)
typedef long int slock_t;

#define HAS_TEST_AND_SET

#elif defined(__mips__)
typedef unsigned int slock_t;

#define HAS_TEST_AND_SET

#elif defined(__arm__)
typedef unsigned char slock_t

#define HAS_TEST_AND_SET

#endif

#if defined(__GLIBC__) && (__GLIBC__ >= 2)
#ifdef HAVE_INT_TIMEZONE
#undef HAVE_INT_TIMEZONE
#endif
#endif

#if defined(__powerpc__)
#undef HAVE_INT_TIMEZONE
#endif



view thread (3+ messages)  latest in thread

Message-ID: <21689.980180396@sss.pgh.pa.us>
Permalink:  ../21689.980180396@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21689.980180396@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cedarc@visionforisrael.com, diplomarbeit.markusjung@gmx.net
  Subject: Re: libpg++ under SUSE Linux 7.0 (problem with link os.h)
  In-Reply-To: <21689.980180396@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox