Thread: darwin x86

darwin x86

From
Chris Langlois
Date:
If you add the following to the /src/include/port/darwin.h file,
pgsql-7.4  will build successfully on Darwin x86:

#define __darwin__    1

#if defined(__ppc__)
#define HAS_TEST_AND_SET
#endif

+#if defined(__i386__)
+#define HAS_TEST_AND_SET
+#endif

#if defined(__ppc__)
typedef unsigned int slock_t;

#else
typedef unsigned char slock_t;

#endif


Re: darwin x86

From
Peter Eisentraut
Date:
Chris Langlois writes:

> If you add the following to the /src/include/port/darwin.h file,
> pgsql-7.4  will build successfully on Darwin x86:

Does it also run successfully?  (For example, do the regression tests
pass?)

--
Peter Eisentraut   peter_e@gmx.net


Re: darwin x86

From
Bruce Momjian
Date:
We are waiting for a report of a successful run of test/regress before
making this change.  Please let us know if the test succeeds.

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

Chris Langlois wrote:
> If you add the following to the /src/include/port/darwin.h file,
> pgsql-7.4  will build successfully on Darwin x86:
>
> #define __darwin__    1
>
> #if defined(__ppc__)
> #define HAS_TEST_AND_SET
> #endif
>
> +#if defined(__i386__)
> +#define HAS_TEST_AND_SET
> +#endif
>
> #if defined(__ppc__)
> typedef unsigned int slock_t;
>
> #else
> typedef unsigned char slock_t;
>
> #endif
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073