Commit 540c1142 authored by Bruce Momjian's avatar Bruce Momjian

Redefine cpu's as __cpu__. Only for 6.6 branch.

parent 0ab1c117
...@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void) ...@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
void * void *
BSD44_derived_dlopen(const char *file, int num) BSD44_derived_dlopen(const char *file, int num)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlopen (%s) not supported", file); sprintf(error_message, "dlopen (%s) not supported", file);
return NULL; return NULL;
#else #else
...@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num) ...@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
void * void *
BSD44_derived_dlsym(void *handle, const char *name) BSD44_derived_dlsym(void *handle, const char *name)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlsym (%s) failed", name); sprintf(error_message, "dlsym (%s) failed", name);
return NULL; return NULL;
#elif defined(__ELF__) #elif defined(__ELF__)
...@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name) ...@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void void
BSD44_derived_dlclose(void *handle) BSD44_derived_dlclose(void *handle)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
#else #else
dlclose(handle); dlclose(handle);
#endif #endif
......
...@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void) ...@@ -61,7 +61,7 @@ BSD44_derived_dlerror(void)
void * void *
BSD44_derived_dlopen(const char *file, int num) BSD44_derived_dlopen(const char *file, int num)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlopen (%s) not supported", file); sprintf(error_message, "dlopen (%s) not supported", file);
return NULL; return NULL;
#else #else
...@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num) ...@@ -76,7 +76,7 @@ BSD44_derived_dlopen(const char *file, int num)
void * void *
BSD44_derived_dlsym(void *handle, const char *name) BSD44_derived_dlsym(void *handle, const char *name)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
sprintf(error_message, "dlsym (%s) failed", name); sprintf(error_message, "dlsym (%s) failed", name);
return NULL; return NULL;
#else #else
...@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name) ...@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
void void
BSD44_derived_dlclose(void *handle) BSD44_derived_dlclose(void *handle)
{ {
#if defined(__mips__) || (defined(__NetBSD__) && defined(vax)) #if defined(__mips__) || (defined(__NetBSD__) && defined(__vax__))
#else #else
dlclose(handle); dlclose(handle);
#endif #endif
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: c.h,v 1.58 1999/07/01 19:47:25 momjian Exp $ * $Id: c.h,v 1.59 1999/07/13 20:00:32 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -759,7 +759,7 @@ extern char *vararg_format(const char *fmt,...); ...@@ -759,7 +759,7 @@ extern char *vararg_format(const char *fmt,...);
#endif /* hpux */ #endif /* hpux */
#endif #endif
#if defined(sun) && defined(sparc) && !defined(__SVR4) #if defined(sun) && defined(__sparc__) && !defined(__SVR4)
#define memmove(d, s, l) bcopy(s, d, l) #define memmove(d, s, l) bcopy(s, d, l)
#include <unistd.h> #include <unistd.h>
#include <varargs.h> #include <varargs.h>
......
#define USE_POSIX_TIME #define USE_POSIX_TIME
#if defined(i386) #if defined(__i386__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
#if defined(sparc) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
#if defined(vax) #if defined(__vax__)
#define NEED_VAX_TAS_ASM #define NEED_VAX_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
......
#if defined(i386) #if defined(__i386__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#endif #endif
#if defined(sparc) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#endif #endif
#define USE_POSIX_TIME #define USE_POSIX_TIME
......
#define USE_POSIX_TIME #define USE_POSIX_TIME
#if defined(i386) #if defined(__i386__)
#define NEED_I386_TAS_ASM #define NEED_I386_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
#if defined(sparc) #if defined(__sparc__)
#define NEED_SPARC_TAS_ASM #define NEED_SPARC_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
#if defined(vax) #if defined(__vax__)
#define NEED_VAX_TAS_ASM #define NEED_VAX_TAS_ASM
#define HAS_TEST_AND_SET #define HAS_TEST_AND_SET
#endif #endif
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.61 1999/06/13 00:07:43 ishii Exp $ * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.62 1999/07/13 20:00:36 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -108,7 +108,7 @@ __asm__(" ldq $0, %0 \n\ ...@@ -108,7 +108,7 @@ __asm__(" ldq $0, %0 \n\
#if defined(i386) #if defined(__i386__)
#define TAS(lock) tas(lock) #define TAS(lock) tas(lock)
static __inline__ int static __inline__ int
...@@ -120,7 +120,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res)); ...@@ -120,7 +120,7 @@ __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(_res));
return (int) _res; return (int) _res;
} }
#endif /* i386 */ #endif /* __i386__ */
...@@ -140,7 +140,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock)); ...@@ -140,7 +140,7 @@ __asm__("swpb %0, %0, [%3]": "=r"(_res), "=m"(*lock):"0"(_res), "r" (lock));
#if defined(sparc) #if defined(__sparc__)
#define TAS(lock) tas(lock) #define TAS(lock) tas(lock)
static __inline__ int static __inline__ int
...@@ -154,7 +154,7 @@ tas(volatile slock_t *lock) ...@@ -154,7 +154,7 @@ tas(volatile slock_t *lock)
return (int) _res; return (int) _res;
} }
#endif /* sparc */ #endif /* __sparc__ */
#if defined(__mc68000__) && defined(__linux__) #if defined(__mc68000__) && defined(__linux__)
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq-int.h,v 1.9 1999/05/25 22:43:49 momjian Exp $ * $Id: libpq-int.h,v 1.10 1999/07/13 20:00:37 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -278,7 +278,7 @@ extern int pqWait(int forRead, int forWrite, PGconn *conn); ...@@ -278,7 +278,7 @@ extern int pqWait(int forRead, int forWrite, PGconn *conn);
/* supply an implementation of strerror() macro if system doesn't have it */ /* supply an implementation of strerror() macro if system doesn't have it */
#ifndef strerror #ifndef strerror
#if defined(sun) && defined(sparc) && !defined(__SVR4) #if defined(sun) && defined(__sparc__) && !defined(__SVR4)
extern char *sys_errlist[]; extern char *sys_errlist[];
#define strerror(A) (sys_errlist[(A)]) #define strerror(A) (sys_errlist[(A)])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment