OSDN Git Service

remove use of PORTNAME_*
authorMarc G. Fournier <scrappy@hub.org>
Thu, 31 Oct 1996 10:17:09 +0000 (10:17 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 31 Oct 1996 10:17:09 +0000 (10:17 +0000)
src/backend/libpq/hba.c
src/backend/libpq/pqcomm.c
src/backend/optimizer/path/costsize.c

index 01ea7b5..96f5b54 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.3 1996/10/28 09:03:50 bryanh Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.4 1996/10/31 10:16:08 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -19,7 +19,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#if PORTNAME == sparc_solaris
+#if defined(sparc_solaris)
 #include <port/inet_aton.h>
 #endif
 
index f207553..01b5588 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.2 1996/07/23 02:23:25 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.3 1996/10/31 10:16:09 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <errno.h>
 #include <fcntl.h>
 
-#ifdef PORTNAME_linux
+#if defined(linux)
 #ifndef SOMAXCONN
 #define SOMAXCONN 5            /* from Linux listen(2) man page */
 #endif /* SOMAXCONN */
-#endif /* PORTNAME_linux */
+#endif /* linux */
 
 #include "c.h"
 #include "libpq/auth.h"
@@ -491,11 +491,11 @@ pq_regoob(void (*fptr)())
     return;
 #else
     int fd = fileno(Pfout);
-#ifdef PORTNAME_hpux
+#if defined(hpux)
     ioctl(fd, FIOSSAIOOWN, getpid());
-#else /* PORTNAME_hpux */
+#else /* hpux */
     fcntl(fd, F_SETOWN, getpid());
-#endif /* PORTNAME_hpux */
+#endif /* hpux */
     (void) signal(SIGURG,fptr);
 #endif /* WIN32 */    
 }
index 9e88609..a1122fa 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.4 1996/10/31 05:53:52 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.5 1996/10/31 10:17:09 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <limits.h>
 #define MAXINT        INT_MAX
 #else
-# if defined(PORTNAME_BSD44_derived) || \
-     defined(PORTNAME_bsdi) || \
-     defined(PORTNAME_bsdi_2_1)
+# if defined(BSD44_derived) || \
+     defined(bsdi) || \
+     defined(bsdi_2_1)
 # include <machine/limits.h>
 # define MAXINT        INT_MAX
 # else
 # include <values.h>
-# endif /* !PORTNAME_BSD44_derived */
+# endif /* !BSD44_derived */
 #endif /* WIN32 */
 
 #include "postgres.h"