diff options
author | Bruce Momjian | 2000-04-12 17:17:23 +0000 |
---|---|---|
committer | Bruce Momjian | 2000-04-12 17:17:23 +0000 |
commit | 52f77df613cea1803ce86321c37229626d9f213c (patch) | |
tree | bd9ac9f667f295cb65f4c448a5bb5a062d656b27 /src/include/port | |
parent | db4518729d85da83eafdacbcebaeb12618517595 (diff) |
Ye-old pgindent run. Same 4-space tabs.
Diffstat (limited to 'src/include/port')
-rw-r--r-- | src/include/port/alpha.h | 1 | ||||
-rw-r--r-- | src/include/port/bsd.h | 2 | ||||
-rw-r--r-- | src/include/port/linux.h | 5 | ||||
-rw-r--r-- | src/include/port/netbsd.h | 2 | ||||
-rw-r--r-- | src/include/port/qnx4.h | 31 |
5 files changed, 26 insertions, 15 deletions
diff --git a/src/include/port/alpha.h b/src/include/port/alpha.h index 2c1c6e55c9a..90c5a8af6cf 100644 --- a/src/include/port/alpha.h +++ b/src/include/port/alpha.h @@ -8,4 +8,3 @@ typedef msemaphore slock_t; #if defined(__alpha) && !defined(__alpha__) #define __alpha__ #endif - diff --git a/src/include/port/bsd.h b/src/include/port/bsd.h index 8406844d079..dc019303250 100644 --- a/src/include/port/bsd.h +++ b/src/include/port/bsd.h @@ -38,6 +38,8 @@ #if defined(__powerpc__) typedef unsigned int slock_t; + #else typedef unsigned char slock_t; + #endif diff --git a/src/include/port/linux.h b/src/include/port/linux.h index 2de8fc8e7ec..d82103b879b 100644 --- a/src/include/port/linux.h +++ b/src/include/port/linux.h @@ -9,22 +9,27 @@ #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 #endif diff --git a/src/include/port/netbsd.h b/src/include/port/netbsd.h index 8406844d079..dc019303250 100644 --- a/src/include/port/netbsd.h +++ b/src/include/port/netbsd.h @@ -38,6 +38,8 @@ #if defined(__powerpc__) typedef unsigned int slock_t; + #else typedef unsigned char slock_t; + #endif diff --git a/src/include/port/qnx4.h b/src/include/port/qnx4.h index 820f26180da..d60555f1047 100644 --- a/src/include/port/qnx4.h +++ b/src/include/port/qnx4.h @@ -1,12 +1,12 @@ -#include <sys/types.h> /* for namser.h */ -#include <arpa/nameser.h> /* for BYTE_ORDER */ -#include <process.h> /* for execv */ -#include <ioctl.h> /* for unix.h */ -#include <termios.h> /* for unix.h */ +#include <sys/types.h> /* for namser.h */ +#include <arpa/nameser.h> /* for BYTE_ORDER */ +#include <process.h> /* for execv */ +#include <ioctl.h> /* for unix.h */ +#include <termios.h> /* for unix.h */ #include <unix.h> -#include <sys/select.h> /* for select */ +#include <sys/select.h> /* for select */ #if !defined(__GNUC__) -#include <semaphore.h> /* for sem_t */ +#include <semaphore.h> /* for sem_t */ #endif #define USE_POSIX_TIME @@ -17,23 +17,26 @@ #define strncasecmp strnicmp -#ifndef NAN -#ifndef __nan_bytes -#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } -#endif /* __nan_bytes */ +#ifndef NAN +#ifndef __nan_bytes +#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } +#endif /* __nan_bytes */ extern unsigned char __nan[8]; -#define NAN (*(const double *) __nan) -#endif /* NAN */ + +#define NAN (*(const double *) __nan) +#endif /* NAN */ typedef u_short ushort; #if defined(__GNUC__) typedef unsigned char slock_t; + #else typedef sem_t slock_t; + #endif -extern int isnan(double dsrc); +extern int isnan(double dsrc); extern double rint(double x); |